(strptime_internal): Fix %I format specifier being off by one.
authordrepper <drepper>
Fri, 25 Apr 1997 10:31:38 +0000 (10:31 +0000)
committerdrepper <drepper>
Fri, 25 Apr 1997 10:31:38 +0000 (10:31 +0000)
time/strptime.c

index fd457af..90b88a1 100644 (file)
@@ -377,7 +377,7 @@ strptime_internal (buf, format, tm, decided)
        case 'I':
          /* Match hour in 12-hour clock.  */
          get_number (1, 12);
-         tm->tm_hour = val - 1;
+         tm->tm_hour = val % 12;
          have_I = 1;
          break;
        case 'j':