-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: datetime.date objects don't get parsed for non-ISO formats #50109
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: datetime.date objects don't get parsed for non-ISO formats #50109
Conversation
elif PyDate_Check(val): | ||
iresult[i] = pydate_to_dt64(val, &dts) | ||
check_dts_bounds(&dts) | ||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as
Lines 544 to 547 in 7c0278e
elif PyDate_Check(val): | |
seen_datetime = True | |
iresult[i] = pydate_to_dt64(val, &dts) | |
check_dts_bounds(&dts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to worry about found_naive? (i guess we dont currently in the tslib code?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we need to, datetime.date
s can't have a timezone, so perhaps it's fine to just parse?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to punt on this for now
0ef8556
to
b707682
Compare
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.