about summary refs log tree commit diff
path: root/time/strptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/strptime.c')
-rw-r--r--time/strptime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/time/strptime.c b/time/strptime.c
index 4e91a719ac..30b015620d 100644
--- a/time/strptime.c
+++ b/time/strptime.c
@@ -543,7 +543,9 @@ strptime_internal (buf, format, tm, decided)
 	case 'y':
 	  /* Match year within century.  */
 	  get_number (0, 99);
-	  tm->tm_year = val >= 50 ? val : val + 100;
+	  /* The "Year 2000 :The Millennium Rollover" paper suggests that
+	     values in the range 69-99 refer to the twentieth century.  */
+	  tm->tm_year = val >= 69 ? val : val + 100;
 	  break;
 	case 'Y':
 	  /* Match year including century number.  */