Skip to content

Commit

Permalink
Allow 24:00 at the end of version-2-format time zone files.
Browse files Browse the repository at this point in the history
* zic.c (stringoffset): Allow 24:00.  POSIX.1-2008 allows 24:00,
even though older versions of POSIX maxed out at 23:59:59.
Patch from Arthur David Olson.
  • Loading branch information
eggert committed Feb 21, 2013
1 parent d4266a8 commit 3c6cc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,7 @@ stringoffset(char *result, long offset)
minutes = offset % MINSPERHOUR;
offset /= MINSPERHOUR;
hours = offset;
if (hours >= HOURSPERDAY) {
if (hours > HOURSPERDAY) {
result[0] = '\0';
return -1;
}
Expand Down

0 comments on commit 3c6cc45

Please sign in to comment.