Closed
Description
Steps to reproduce
- Install Magento from
develop
branch using timezone EST with server time UTC. - Create a "Test" category
- Create a new Catalog Event in the admin panel from different timezones. I had people connect to my local site from different timezones.
Expected result
- GMT offset occurs properly
Actual result
- GMT offset does not occur properly. For instance if I navigate to the admin panel on my local machine running UTC, and set the event expiration to
2016-03-16 15:18:00
(2 minutes greater than what my computer is currently displaying), I would expect the frontend to show that there are 2 minutes left on the sale. Instead, it does not offset that saved datetime, and interprets it as EST on the frontend so that the event expires in 4 hours and 2 minutes.
If no one can get around to a fix, please at least respond with a way to do this or some other example in core code where this is done correctly. I am creating a scheduler for CMS content and need examples on how to do this in Magento 2.