Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed time difference calculation in DST timezones
refs https://github.com/TryGhost/Team/issues/588 - date-fns proved to be unable to manipulate dates consistently in UTC timezone. Keeping all calculations and formatting in UTC is key to have consistency in dates when dealing in inter-system dates - day.js also failed the test for correct UTC manipulation. See iamkun/dayjs#1271 for example bug which prevents from consistent correct calculation - luxon was the best option which WORKED. It's also a recommended successor for moment.js with really nice docs and active support
- Loading branch information