-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
BUG: date parsers use different tz offsets #12064
Comments
you might want to make a slightly different error message. But its still a timezone are hard enough! |
just to be clear, I didn't think that This popped up in the tests in #12060 - if the iso8601 parser is more flexible, it's somewhat easy to have two similar looking dates, but only 1 hits the C parser. There it was: date_range('2013/1/1 0:00:00+9:00', '2016/1/1 23:59:59+09:00') |
oh I c. so we fallback to |
Yeah, that's the issue. Though looking at again, I suppose I could also have the ISO parser handle times without leading 0s, I think it's unambiguous as long as the |
we can deal with issue separatly (e.g. parsing leading/lacking 0's for the tz's) |
xref #12060
@jreback - my thought was to just convert the
dateutil
timezone offset (tzoffset
) to a pytz offset?The text was updated successfully, but these errors were encountered: