Go has stolen several hours from the twentieth century Hungary

163 views
Skip to first unread message

Tamás Gulácsi

unread,
Oct 22, 2023, 9:16:51 AM10/22/23
to golang-nuts
https://go.dev/play/p/qkPmfu1sCyU

1954-05-22
1980-04-06
1981-03-29
1982-03-28
1983-03-27

has the first second in the day as 01:00:00

The previous second is of the previous day.


Maybe it's just TZ history, and these dates had the DST change betweem 00:00:00 and 01:00:00, eliminating that hour (not the nowadays ususal set to 3 at 2 o'clock).

I just don't know enough about this, that's why I'm asking.

Thanks in advance,
Tamás Gulácsi

Tamás Gulácsi

unread,
Oct 22, 2023, 9:38:01 AM10/22/23
to golang-nuts
In tzdb/europe: 
Rule    Hungary 1954    only    -       May     23       0:00   1:00    S
Rule    Hungary 1980    only    -       Apr      6       0:00   1:00    S
Rule    Hungary 1981    1983    -       Mar     lastSun  0:00   1:00    S

If I interpret it  correctly, my "bad" dates are when the clock has been adjusted at midnight from 0:00 to 1:00,
just like now from 2:00 to 3:00.

My problem with this is that I wanted to do the "right thing", and added time zone information 
from DATE values returned from Oracle DB in the godror driver.

The DB stores 1954-05-23 (00:00:00), which have not existed in Europe/Budapest time zone.

Maybe I have to accept this discrepancy for these handful  of dates.
Any better idea?
Reply all
Reply to author
Forward
0 new messages