Merge pull request #74 from SanchithHegde/master - tty-clock - port of tty-clock to OpenBSD, with pledge/unveil added as goodie.
HTML git clone https://git.drkhsh.at/tty-clock.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit ab7dc4badd2f6fbf1aa6e09fa0007dbebdeb87ff
DIR parent 0cec6b099385d0db33fe81ae3d0d34e15ed40430
HTML Author: anarcat <anarcat@users.noreply.github.com>
Date: Fri, 1 May 2020 17:10:10 -0400
Merge pull request #74 from SanchithHegde/master
Fixes AM/PM displayed incorrectly for 12:00 - 12:59
Diffstat:
M ttyclock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/ttyclock.c b/ttyclock.c
@@ -187,7 +187,7 @@ update_hour(void)
ihour = ttyclock.tm->tm_hour;
if(ttyclock.option.twelve)
- ttyclock.meridiem = ((ihour > 12) ? PMSIGN : AMSIGN);
+ ttyclock.meridiem = ((ihour >= 12) ? PMSIGN : AMSIGN);
else
ttyclock.meridiem = "\0";