Skip to content

No timezone offsets for catalog events #3815

Closed
@samtay

Description

@samtay

Steps to reproduce

  1. Install Magento from develop branch using timezone EST with server time UTC.
  2. Create a "Test" category
  3. 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

  1. GMT offset occurs properly

Actual result

  1. 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.

Metadata

Metadata

Assignees

Labels

Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for development

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions