diff options
author | Roland McGrath <roland@gnu.org> | 2004-02-09 20:16:34 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-02-09 20:16:34 +0000 |
commit | 9eec17f5f2e15390fd2dc29bc8212bbc8b688ae5 (patch) | |
tree | ca65ffa6538fe26448e935de86789689a2205d00 /time | |
parent | 1e0c12267c60362c44dbd165d7159c92551593d0 (diff) | |
download | glibc-9eec17f5f2e15390fd2dc29bc8212bbc8b688ae5.zip glibc-9eec17f5f2e15390fd2dc29bc8212bbc8b688ae5.tar.gz glibc-9eec17f5f2e15390fd2dc29bc8212bbc8b688ae5.tar.bz2 |
* time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to
24, not 23.
Diffstat (limited to 'time')
-rw-r--r-- | time/tzset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/time/tzset.c b/time/tzset.c index 6de9676..2274a38 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1991-2002,2003,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -241,7 +241,7 @@ tzset_internal (always) break; } tz_rules[0].offset *= (min (ss, 59) + (min (mm, 59) * 60) + - (min (hh, 23) * 60 * 60)); + (min (hh, 24) * 60 * 60)); for (l = 0; l < 3; ++l) { |