spencermountain/spacetime

DST date folk patterns

Aberta

#332 aberto em 28 de mar. de 2022

 (4 comentários) (0 reação) (0 responsável)JavaScript (189 forks)batch import
enhancementhelp wantedyess

Métricas do repositório

Stars
 (3.809 estrelas)
Métricas de merge de PR
 (Mesclagem média 16h 33m) (4 fundiu PRs em 30d)

Description

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

  • spacetime.today().goto("Europe/London").d returns 2022-03-28T00:00:00.000Z (correct)
  • spacetime.tomorrow().goto("Europe/London").d returns 2022-03-29T01:00:00.000Z (incorrect)

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).

Guia do colaborador