-
Notifications
You must be signed in to change notification settings - Fork 22
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
RFC: Change createdAt format on MessageConverter #71
Comments
sound logical to have everything ready to be sent via a network.The uuid is also converted.
That's not an ATOM format you propose cause it contains microseconds. Isn't there a DateTime::ATOM_WITH_MICRO format out there? |
The uuid is already converted to string, and no, there is no ATOM_WITH_MICRO format or anything else that comes near. |
Afaik there is only 👍 on this proposal although I'd use P for timezone instead of Z. |
Yes please. This certainly is part of message serialization. Not sure about the timezone part though. We just run everything on UTC and convert it to local time where necessary. I understand MySQL does this on the DB level only for |
We recommend already to use UTC, however you're free to use something else (even if that's stupid). |
Implemented on develop-branch: https://github.com/prooph/common/tree/develop |
This library will receive support until December 31, 2019 and will then be deprecated. For further information see the official announcement here: https://www.sasaprolic.com/2018/08/the-future-of-prooph-components.html |
Current MessageConverter actually doesn't convert the createdAt field but returns a DateTimeImmutable object, which means that in order to send via network you have to convert it again to string.
I would like to propose that the createdAt field will get converted to string by default with format
'Y-m-d\TH:i:s.u\Z
Thoughts?
/cc @fritz-gerneth @enumag @basz
The text was updated successfully, but these errors were encountered: