From 3090a1d9d954fecc0939cccfef7517bce585525c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 21 May 1997 00:08:10 +0000 Subject: [PATCH] (strptime_internal): Fix %I format specifier being off by one. --- time/strptime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/time/strptime.c b/time/strptime.c index fd457af6c01..90b88a1ba33 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': -- 2.47.2