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

date_format doesn't support time formatting #7

Closed
lorin opened this issue Dec 2, 2017 · 2 comments
Closed

date_format doesn't support time formatting #7

lorin opened this issue Dec 2, 2017 · 2 comments
Labels

Comments

@lorin
Copy link

lorin commented Dec 2, 2017

date_format returns zeros for %H, %M and %S

>>> from datetime import datetime
>>> import time
>>> from mizani import date_format

>>> fmt = "%Y-%m-%d %H:%M:%S"
>>> ts = datetime(2017,12,1,16,5,7)

>>> ts.strftime(fmt)
'2017-12-01 16:05:07'
>>> date_format(fmt)([ts])
['2017-12-01 00:00:00']

I looked to see if there was a different formatter for datetimes instead of just dates, but I couldn't find one.

@has2k1 has2k1 added the bug label Dec 2, 2017
@has2k1 has2k1 closed this as completed in cc988e4 Dec 2, 2017
@has2k1
Copy link
Owner

has2k1 commented Dec 2, 2017

Fix released in v0.4.3.

@lorin
Copy link
Author

lorin commented Dec 2, 2017

Wow, that was fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants