summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-04-17 23:30:22 +0000
committerUlrich Drepper <drepper@redhat.com>1997-04-17 23:30:22 +0000
commitb7c5a468dcc0f5aeda11ca444a6374e0a7fdf4a7 (patch)
treebe0701c3801c46f63053ffd1ccde39085788ec33 /time
parentf9652c80ae06efdb9ddb35b6df96bcd44564136a (diff)
Interpret year number 00-59 as 2000--2059.
Diffstat (limited to 'time')
-rw-r--r--time/strptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/strptime.c b/time/strptime.c
index 89cfa8e2a4..fd457af6c0 100644
--- a/time/strptime.c
+++ b/time/strptime.c
@@ -537,7 +537,7 @@ strptime_internal (buf, format, tm, decided)
case 'y':
/* Match year within century. */
get_number (0, 99);
- tm->tm_year = val;
+ tm->tm_year = val >= 50 ? val : val + 100;
break;
case 'Y':
/* Match year including century number. */