Comments (7)
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.
The uuid is already converted to string, and no, there is no ATOM_WITH_MICRO format or anything else that comes near.
from common.
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.
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.
We recommend already to use UTC, however you're free to use something else (even if that's stupid).
from common.
Implemented on develop-branch: https://github.com/prooph/common/tree/develop
from common.
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)
- Remove PsrZF2Logger
- Move ZF2ActionEventDispatcher to proophessor
- Require ramsey/uuid HOT 1
- Replace phpunit with phpspec HOT 1
- Rename ActionEventDispatcher to ActionEventEmitter
- DomainMessage treat all Dates as UTC
- Force datetime format to include microseconds HOT 9
- Wrong email address in php doc HOT 1
- Upgrade to ramsey/uuid 3.x HOT 12
- Update to coveralls ^1.0
- Allow stdClass objects in payload HOT 35
- Remove ActionEventListener interface
- Update Uuid to latest version HOT 1
- PayloadTrait requires payload to present HOT 3
- Allow objects in message payload / enforce scalar values only for infrastructure reasons HOT 8
- RFC: Remove payload from Message HOT 35
- RFC: messageName() method is abstract by default HOT 12
- Only array and scalar in event objects HOT 1
- Ramsey/uuid v4 is out
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from common.