mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
Interpret year number 00-59 as 2000--2059.
This commit is contained in:
parent
f9652c80ae
commit
b7c5a468dc
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user