summaryrefslogtreecommitdiffstats
path: root/bin/date
diff options
context:
space:
mode:
Diffstat (limited to 'bin/date')
-rw-r--r--bin/date/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index c71f9d3..e0f8a6f 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -234,9 +234,9 @@ setthetime(const char *fmt, const char *p, int jflag, int nflag)
case 10: /* yy */
if (century)
lt->tm_year += ATOI2(p);
- else { /* hack for 2000 ;-} */
+ else {
lt->tm_year = ATOI2(p);
- if (lt->tm_year < 69)
+ if (lt->tm_year < 69) /* hack for 2000 ;-} */
lt->tm_year += 2000 - TM_YEAR_BASE;
else
lt->tm_year += 1900 - TM_YEAR_BASE;
OpenPOWER on IntegriCloud