Bug 200133

Summary: [patch] /usr/games/grdc displays wrong time in 12-hour mode between 12:00 and 13:00
Product: Base System Reporter: Nick Price <nick>
Component: binAssignee: Ed Maste <emaste>
Status: Closed FIXED    
Severity: Affects Many People CC: emaste, nick
Priority: --- Keywords: patch
Version: 10.1-STABLE   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194291
Attachments:
Description Flags
patch to grdc.c to fix bug none

Description Nick Price 2015-05-11 18:16:45 UTC
Created attachment 156664 [details]
patch to grdc.c to fix bug

nested if statements did not account for condition where hour was == 12
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-06-02 20:54:09 UTC
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
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-09-24 19:37:48 UTC
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
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-09-24 19:42:51 UTC
A commit references this bug:

Author: emaste
Date: Thu Sep 24 19:42:33 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