diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-05-21 00:08:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-05-21 00:08:10 +0000 |
commit | 3090a1d9d954fecc0939cccfef7517bce585525c (patch) | |
tree | 749d6ba4dd4172c0cbbc131a6692e6247afb0fac | |
parent | ea72be0702312b0b10ea93a8a117545c84b6dd78 (diff) | |
download | glibc-3090a1d9d954fecc0939cccfef7517bce585525c.tar glibc-3090a1d9d954fecc0939cccfef7517bce585525c.tar.gz glibc-3090a1d9d954fecc0939cccfef7517bce585525c.tar.bz2 glibc-3090a1d9d954fecc0939cccfef7517bce585525c.zip |
(strptime_internal): Fix %I format specifier being off by one.
-rw-r--r-- | time/strptime.c | 2 |
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': |