spencermountain / spacetime

A lightweight javascript timezone library
http://spacetime.how/
Other
3.98k stars 184 forks source link

DST date folk patterns #332

Open thomasdowell opened 2 years ago

thomasdowell commented 2 years ago

Yesterday, the clocks went forward 1 hour in the UK. The tomorrow function now moves to the Europe/London timezone incorrectly:

I am using version 6.15.1, so please accept my apologies if this issue has already been fixed. If not, then to ensure you understand when the clocks change in the UK, I have copied the following from the UK government's website (https://www.gov.uk/when-do-the-clocks-change):

In the UK the clocks go forward 1 hour at 1am on the last Sunday in March (yesterday), and back 1 hour at 2am on the last Sunday in October.

The period when the clocks are 1 hour ahead is called British Summer Time (BST). There’s more daylight in the evenings and less in the mornings (sometimes called Daylight Saving Time).

When the clocks go back, the UK is on Greenwich Mean Time (GMT).

spencermountain commented 2 years ago

hey thomas, yeah, the current version has up-to-date dst change-over times, you can see it here

I am going to do that this summer - and i'd really like some help. The '2nd sunday' stuff is surprisingly hard to come-across, for different timezones. Right now we have to keep updating the library. I've started working on organzing the dst times by '2nd sunday' patterns here if you were inclined to help.

Short answer - an update will work for now, long answer, i'm working on it!