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

OSError when using arrow.get('local') #503

Closed
JordanKnott opened this issue Dec 11, 2017 · 1 comment
Closed

OSError when using arrow.get('local') #503

JordanKnott opened this issue Dec 11, 2017 · 1 comment

Comments

@JordanKnott
Copy link

Python Version: 3.6.3
Arrow Version: 0.12.0

When I do the following:

import arrow
t = arrow.get(0)
t.to('local')

It will throw an OSError: [Errno 22] Invalid argument exception

However if specific a timezone string other than local, it works. (Example below)

import arrow
t = arrow.get(0)
t.to('US/Pacific')
@systemcatch
Copy link
Collaborator

@JordanKnott I don't see this error in Python 3.6.3 when building arrow off of master.

Python 3.6.7 (default, Oct 25 2018, 09:16:13) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import arrow
>>> t = arrow.get(0)
>>> t.to('local')
<Arrow [1970-01-01T00:00:00+00:00]>
>>> t.to('US/Pacific')
<Arrow [1969-12-31T16:00:00-08:00]>

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

No branches or pull requests

2 participants