We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tzfile
1 parent 9ad6c53 commit 59b3582Copy full SHA for 59b3582
libc/src/time/timezone.cpp
@@ -72,7 +72,8 @@ int get_timezone_offset(char *timezone) {
72
size_t i;
73
__uint128_t tmp;
74
75
- // these locations in timezone files are defined in `tzfile`
+ // these locations in timezone files are defined in documentation
76
+ // for `tzfile`
77
magic = (hdr[0] << 24) | (hdr[1] << 16) | (hdr[2] << 8) | hdr[3];
78
version = hdr[4];
79
for (i = 5; i <= 20; i++) {
@@ -95,8 +96,7 @@ int get_timezone_offset(char *timezone) {
95
96
return 0;
97
}
98
- // currently only supporting tzfile v2 and v3
99
- if (version != 0x32 && version != 0x33) {
+ if (version != 0x32 && version != 0x33 && version != 0x34) {
100
101
102
0 commit comments