Bug 200133 - [patch] /usr/games/grdc displays wrong time in 12-hour mode between 12:00 and 13:00
Summary: [patch] /usr/games/grdc displays wrong time in 12-hour mode between 12:00 and...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: Ed Maste
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-05-11 18:16 UTC by Nick Price
Modified: 2015-09-24 19:43 UTC (History)
2 users (show)

See Also:


Attachments
patch to grdc.c to fix bug (522 bytes, patch)
2015-05-11 18:16 UTC, Nick Price
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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