Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Intl.DateTimeFormat to fix DST offsets #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaclarke
Copy link

Changed offsetOf and timeAt to use node's builtin tz database via the Intl.DateTimeFormat api, and added optional date argument to offsetOf, to correctly handle offsets during daylight savings time (Fixes #8)

@@ -31,5 +31,8 @@
"eslint": "^5.16.0",
"mocha": "^6.1.4",
"nyc": "^14.0.0"
},
"engines": {
"node": ">=8.0.0"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the node version is now 14.0

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the current LTS but this package supports all versions before up to v8.

@sstopkin
Copy link

sstopkin commented Nov 8, 2021

@meeratony What's left here? Could it be merged?

@meeratony
Copy link

meeratony commented Nov 8, 2021

@meeratony What's left here? Could it be merged?

Tests are failing.
image
Need to fix this before merging . Also i cant merge it only the collaborators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't support Daylight Savings Time
4 participants