summaryrefslogtreecommitdiff
path: root/time/strptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/strptime.c')
-rw-r--r--time/strptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/strptime.c b/time/strptime.c
index fd457af6c0..90b88a1ba3 100644
--- a/time/strptime.c
+++ b/time/strptime.c
@@ -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':