Skip to content

Replace undocumented strftime usage in TimesliderChoropleth example. #919

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

Merged

Conversation

Conengmo
Copy link
Member

The use of .strftime('%s') on datetime objects is undocumented and system dependent. This can lead to unexpected behavior. So as an alternative we can convert the Pandas DateTimeIndex object to epoch timestamps and then to strings, which leads to the same result.

Closes #855.

Instead convert the Pandas DateTimeIndex object to epoch timestamps and then to strings.
@Conengmo Conengmo requested a review from ocefpaf July 22, 2018 17:37
@Conengmo Conengmo removed the request for review from ocefpaf August 1, 2018 13:32
@Conengmo Conengmo merged commit 06b73f5 into python-visualization:master Aug 1, 2018
@Conengmo Conengmo deleted the fix-datetime-conversion branch August 1, 2018 13:51
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

Successfully merging this pull request may close these issues.

2 participants