All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
This change log follows the format documented in Keep a CHANGELOG.
- Fixed issue with
setTime
not syncing the value to the internal date resulting in incorrect behavior #16, #24.
- Improved compatability with FormatJS Intl polifyll #8. Thanks to @kevin-abiera.
- Reworked DST handling to fix various bugs and edge cases. There might still be some issues, but I'm actively working on improving test coverage.
This is yet another critical bug-fix release. Thank you to all the people who sent PRs and reported their issues. Special thanks to @huextrat, @allohamora and @lhermann.
-
Fixed negative fractional time zones like
America/St_Johns
@allohamora. -
Fixed the DST bug when creating a date in the DST transition hour.
- Added support for
±HH:MM/±HHMM/±HH
time zone formats for Node.js below v22 (and other environments that has this problem) #3
This release fixes a couple of critical bugs in the previous release.
-
Fixed UTC setters functions generation.
-
Create
Invalid Date
instead of throwing an error on invalid arguments. -
Make all the number getters return
NaN
when the date or time zone is invalid. -
Make
tzOffset
returnNaN
when the date or the time zone is invalid.
Initial version