Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
For Windows, use the Windows API and the Windows Registry, not tzdata. By design, Windows doesn't use tzdata. Windows users update time zone data via Windows update. They don't expect to have to update tzdata too--they have never heard of it. This introduces a subtle and pernicious bug on Windows systems.
Thanks for your concern. The tzdata is needed only for time.LoadLocation. The time zone information in the kernel used for time.Local (the local time zone), but I do not believe it can provide information about other time zones, and it does not use the standard IANA names. Only programs that use time.LoadLocation need to worry about the time zone data file. If you can implement the same functionality, using the same location names, with the kernel API alone, then I'd be happy to review a CL. Russ