<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Andrew,<div><br></div><div>Regarding the software problem you're seeing, it's quite possibly a result of using a language or API in which dates -- like 2020-01-09 -- are represented as localized datetimes at midnight -- like 2020-01-09 at 00:00 in America/Regina. This is a pervasive class of bugs that affects JavaScript programs for users in Brazil and Chile in particular. JavaScript because the language's builtin Date representation is a datetime (and the ubiquitous moment library isn't so careful with it), and Brazilian and Chilean users because until recently their time zones had midnight spring forwards. Here's a particularly illuminating example of this class of bugs: <a href="https://github.com/airbnb/react-dates/issues/776">https://github.com/airbnb/react-dates/issues/776</a>.</div><div><br></div><div>Hope that helps you track down your software issue.</div><div><br></div><div>Scott Kilpatrick</div><div><a href="http://typesandtimes.net">https://typesandtimes.net</a></div><div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 8, 2020 at 8:07 PM Paul Eggert <<a href="mailto:eggert@cs.ucla.edu">eggert@cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 1/8/20 11:49 AM, Andrew Lyon wrote:<br>
> It appears that many use the tz database as a source of truth.<br>
<br>
Ouch. As we say in big letters, "The tz code and data are by no means <br>
authoritative." <<a href="https://data.iana.org/time-zones/tz-link.html#changes" rel="noreferrer" target="_blank">https://data.iana.org/time-zones/tz-link.html#changes</a>><br>
<br>
> I understand there were 10 years between 1930 and 1941 when the hour of <br>
> Spring daylight saving transition was 0000 (midnight)  to 0100.  I would <br>
> like to confirm these entries are in the tz database.<br>
<br>
Yes, tzdb says the 10 years 1930/1934 and 1937/1941 all did that, as can <br>
be seen from the extract Brian emailed.<br>
<br>
> I have numerous <br>
> references that daylight saving time was also observed in <br>
> America/Regina  during world war ONE ( 1914-1918) and I am uncertain if <br>
> those entries are in the tz database or the hour of those transitions.<br>
<br>
As Brian mentioned, tzdb has these two transitions for 1918:<br>
<br>
Sun Apr 14 08:59:59 1918 UT = Sun Apr 14 01:59:59 1918 MST<br>
Sun Apr 14 09:00:00 1918 UT = Sun Apr 14 03:00:00 1918 MDT<br>
<br>
Sun Oct 27 07:59:59 1918 UT = Sun Oct 27 01:59:59 1918 MDT<br>
Sun Oct 27 08:00:00 1918 UT = Sun Oct 27 01:00:00 1918 MST<br>
<br>
However, there's a good chance these data entries are incomplete for <br>
Regina. It's also possible that the entries for 1930/1941 are wrong. For <br>
details, please read the commentary for Regina in the northamerica file. <br>
Here's the current development version:<br>
<br>
<a href="https://github.com/eggert/tz/blob/master/northamerica" rel="noreferrer" target="_blank">https://github.com/eggert/tz/blob/master/northamerica</a><br>
</blockquote></div>