Merge pull request #55 from slackhead/ampm-fix

AM/PM Fix
reverse-branch
anarcat 8 years ago committed by GitHub
commit ab121b53e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ttyclock.c

@ -192,7 +192,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";

Loading…
Cancel
Save