Created attachment 148175 [details] patch to let grdc show PM instead of AM during the 12 PM hour When I use `grdc -t`, it shows 12:00:00 AM at noon. I keep dragging this patch along and using it. IOW, I patch it like this: cd /usr/src/games/grdc patch < grdc-noon-patch.diff I don't know when this became the case, or whether I noticed it first in FreeBSD 9.2 or in 10.0. Thanks! Michael
A commit references this bug: Author: emaste Date: Tue Jun 2 20:53:18 UTC 2015 New revision: 283929 URL: https://svnweb.freebsd.org/changeset/base/283929 Log: Correct grdc(1) 12-hour display between 12:00 and 13:00 PM starts at 12:00, not 13:00. PR: 194291, 200133 Submitted by: Nick Price MFC after: 1 week Changes: head/games/grdc/grdc.c
Hmmm, there might be a different fix in last night's 11-CURRENT i386 snapshot, or at least grdc seems to be working OK there in limited testing. No worries if you have to junk this patch: It was coded very quickly during a lunch break at work. Thanks! Michael
> Hmmm, there might be a different fix in last night's 11-CURRENT i386 snapshot, or at least grdc seems to be working OK there in limited testing. No worries if you have to junk this patch: It was coded very quickly during a lunch break at work. I found PR 200133 first and committed a version of the patch from that one. It should be equivalent to the change here, just written a bit differently. Thanks for the bug report and patch, and sorry it wasn't spotted earlier. I'm leaving this PR open until the fix is MFC'd.
A commit references this bug: Author: emaste Date: Thu Sep 24 19:37:35 UTC 2015 New revision: 288185 URL: https://svnweb.freebsd.org/changeset/base/288185 Log: MFC r283929: Correct grdc(1) 12-hour display between 12:00 and 13:00 PM starts at 12:00, not 13:00. PR: 194291, 200133 Submitted by: Nick Price Changes: _U stable/10/ stable/10/games/grdc/grdc.c
A commit references this bug: Author: emaste Date: Thu Sep 24 19:42:32 UTC 2015 New revision: 288186 URL: https://svnweb.freebsd.org/changeset/base/288186 Log: MFC r283929: Correct grdc(1) 12-hour display between 12:00 and 13:00 PM starts at 12:00, not 13:00. PR: 194291, 200133 Submitted by: Nick Price Changes: _U stable/9/games/grdc/ stable/9/games/grdc/grdc.c