question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent behaviour for `utcOffset`.

See original GitHub issue

Describe the bug Inconsistent behaviour for utcOffset. Probably issue with Daylight Saving Time. image

Expected behavior Should be -4 as in the row below.

Information

  • Day.js Version [1.10.3]
  • moment-timezone Version [0.5.32]
  • OS: [Mac OS Big Sur]
  • Interpreter Node.js [14.15.0]
  • Time zone: [GMT+2 (Eastern European Time)]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
addisonElliottcommented, Jan 20, 2021

FYI, it seems the bug is in moment to me.

Right now the correct offset for America/New_York is -5.

See here: https://www.zeitverschiebung.net/en/timezone/america--new_york

0reactions
iamkuncommented, Jan 28, 2021

fixed in #1352

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistent behavior with `astimezone` utc offsets [duplicate]
I have heard datetime and pytz don't play along perfectly (of course, managing time in code itself is tricky) and have seen many...
Read more >
Inconsistent Time Offset in Date Variables - OpenText Forums
I am assigning, and comparing, date/time values in 9.1.2. I've noticed that ProcessContext.CurrentTime contains a time zone offset, but any time a value...
Read more >
CURTIME() get inconsistent result with NOW() - MySQL Bugs
Result is inconsistent(notice the hour part): Test CURTIME() : 07:30:04 ... get a UTC offset result and NOW() get a UTC DST offset...
Read more >
Inconsistent Orders API time query results - Shopify Community
I know I can get the UTC offset in code from the local PC where application is running, but this assumes that the...
Read more >
Time Zones and Resolving Ambiguity - Temporal documentation
Every wall-clock time is defined using a UTC Offset: the amount of exact time that a particular clock is set ahead or behind...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found