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.

Issue with DST transition

See original GitHub issue
>>> t = arrow.get("2019-10-27T02:21:01+03:00")
>>> t
<Arrow [2019-10-27T02:21:01+03:00]>
>>> t.to("Israel")
<Arrow [2019-10-27T01:21:01+03:00]>

Note the same tz offset but different hours

Same bug, another appearence:

>>> ut = 1572132061
>>> ut == arrow.get(ut).to("Israel").timestamp
False
>>> ut - arrow.get(ut).to("Israel").timestamp
3600

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
systemcatchcommented, Feb 25, 2020

@jmgurney this is fixed in #758 which we are hoping to get merged and released in March.

1reaction
lioshacommented, Oct 14, 2019

The same on 3.7.3

$ python3
Python 3.7.3 (default, Oct  7 2019, 12:56:13) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import arrow
>>> arrow.__version__
'0.15.2'
>>> arrow.get(1572132061).to("Israel").timestamp
1572128461
Read more comments on GitHub >

github_iconTop Results From Across the Web

Daylight Saving Time and Your Health | Northwestern Medicine
She explains that the transition to DST can create short-term health problems — sleep issues, fatigue and changes in blood pressure — that...
Read more >
Fall Back? Spring Ahead? How About Neither, Experts Say.
One issue: Many scientists think a permanent switch daylight saving time is a horrible idea. The arguments for permanent daylight saving time.
Read more >
Negative Effects of Daylight Saving Time - Insider
Daylight saving time has been linked to a host of mental and physical health issues. It can put people at greater risk for...
Read more >
How daylight saving time poses a host of health concerns ...
“Falling back” – going from daylight saving time to standard time each November by turning the clocks back one hour – is relatively...
Read more >
The Dangers of Daylight Saving Time - USNews.com
Collectively, the sleep deprivation brought on by the transition to daylight saving time has been associated with demonstrable physical ...
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