diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-04-17 23:30:22 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-04-17 23:30:22 +0000 |
commit | b7c5a468dcc0f5aeda11ca444a6374e0a7fdf4a7 (patch) | |
tree | be0701c3801c46f63053ffd1ccde39085788ec33 | |
parent | f9652c80ae06efdb9ddb35b6df96bcd44564136a (diff) | |
download | glibc-b7c5a468dcc0f5aeda11ca444a6374e0a7fdf4a7.tar glibc-b7c5a468dcc0f5aeda11ca444a6374e0a7fdf4a7.tar.gz glibc-b7c5a468dcc0f5aeda11ca444a6374e0a7fdf4a7.tar.bz2 glibc-b7c5a468dcc0f5aeda11ca444a6374e0a7fdf4a7.zip |
Interpret year number 00-59 as 2000--2059.
-rw-r--r-- | time/strptime.c | 2 |
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. */ |