-
-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
writer: dump date without time #569
Comments
the reason is: both and given the choice of how to dump a particular date, I think it's better to go with more explicit representation |
While it's really annoying for my yaml use, I see your point. A date-String ending in |
Can you fix it for your own app with a hack similar to this?: #570 (comment) I wonder if there should just be a public api to customize dumper output. |
I think if this is not of broader interest, the issue can be closed. If there was broader interest, I might make a PR to remove "trailing zeros" in Date dumps. Doesn't feel terribly complicated and would be in line with trailing zeros vanishing for floats, right? ;) |
Floats are easy. If you write number
|
omg, locales are fun :D You win |
A yaml property
date: 2020-07-22
should survive the round trip but I getdate: 2020-07-11T00:00:00.000Z
.The text was updated successfully, but these errors were encountered: