Code Monkey home page Code Monkey logo

Comments (7)

basz avatar basz commented on June 1, 2024

sound logical to have everything ready to be sent via a network.The uuid is also converted.

'uuid' => $message->uuid()->toString(),

That's not an ATOM format you propose cause it contains microseconds. Isn't there a DateTime::ATOM_WITH_MICRO format out there?

from common.

prolic avatar prolic commented on June 1, 2024

The uuid is already converted to string, and no, there is no ATOM_WITH_MICRO format or anything else that comes near.

from common.

enumag avatar enumag commented on June 1, 2024

Afaik there is only DateTime::RFC3339_EXTENDED which only contains milliseconds, not microseconds. None of the formats in DateTime constants has microseconds sadly.

👍 on this proposal although I'd use P for timezone instead of Z.

from common.

fritz-gerneth avatar fritz-gerneth commented on June 1, 2024

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 TIMESTAMP but not for DATETIME, making it just drop the timezone information. This potentially would cause serious issues should events be created in different timezones anyway? For other DBs I have no knowledge how they behave.

from common.

prolic avatar prolic commented on June 1, 2024

We recommend already to use UTC, however you're free to use something else (even if that's stupid).

from common.

prolic avatar prolic commented on June 1, 2024

Implemented on develop-branch: https://github.com/prooph/common/tree/develop

from common.

prolic avatar prolic commented on June 1, 2024

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

from common.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.