dateutil/dateutil

tzfile reader only reads 32-bit (verson 0) zoneinfo files

Open

#462 opened on Sep 20, 2017

 (4 comments) (4 reactions) (0 assignees)Python (470 forks)batch import
bugenhancementhelp wantedmedium-difficultytime zones

Repository metrics

Stars
 (2,189 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

The output of zic includes a 32-bit legacy section and a 64-bit section that encodes the transition times as 64-bit epoch times. Currently we're only reading the first one. What we should do is read the zoneinfo header to determine how long the first section is, seek to the end of that section and see if there's a second "version 2" section, and if so read that one instead, otherwise go back and finish reading the 32-bit version.

This will have almost no real effect at the moment.

Contributor guide