Skip to content
Browse files

Allow 24:00 at the end of version-2-format time zone files.

* 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...
1 parent d4266a8 commit 3c6cc4544df58e989cf2a7f7f6985c106b11892f @eggert committed Feb 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 zic.c
View
2 zic.c
@@ -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;
}

0 comments on commit 3c6cc45

Please sign in to comment.
Something went wrong with that request. Please try again.