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

The backend should treat all Dates as UTC #6

Closed
codeliner opened this issue Aug 9, 2015 · 2 comments
Closed

The backend should treat all Dates as UTC #6

codeliner opened this issue Aug 9, 2015 · 2 comments

Comments

@codeliner
Copy link
Member

Extracted from #4. Based on a comment by @prolic
The frontend is required to set the appropriate timezone.
Currently we use "$dateTime = new DateTime()", which relies on php's internal timezone setting. If you query the data from another server with different timezone settings, you get wrong DateTimes for the created_at property of an event.

@prolic
Copy link
Member

prolic commented Aug 10, 2015

How would you like to implement this?
We can do it on every single adapter (calculate the offset from UTC and substract) or direct in the DomainMessage class?

@codeliner
Copy link
Member Author

We should fix that in the DomainMessage class and publish a bugfix release.

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

No branches or pull requests

2 participants