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

No timezone offsets for catalog events #3815

Closed
samtay opened this issue Mar 16, 2016 · 2 comments
Closed

No timezone offsets for catalog events #3815

samtay opened this issue Mar 16, 2016 · 2 comments
Assignees
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@samtay
Copy link

samtay commented Mar 16, 2016

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.

@antboiko
Copy link

Hello @samtay , sorry for the late reply. We've created internal ticket MAGETWO-52986 to investigate this issue.

Best,
Anton.

@antboiko antboiko added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label May 18, 2016
@katmoon
Copy link
Contributor

katmoon commented May 26, 2016

Hi @samtay

Magento Admin expects date/time to be set in Magento timezone, EST in your case.
So if your local machine is in UTC, you should set 2016-03-16 11:18:00 in Admin. This applies to any functionality in Admin, not only CatalogEvents.

@antboiko This is indeed not obvious and we raised this question several times. There was a proposition to add a time clock in Admin so that it's clear what is 'current time' for Admin at least.

@samtay I'm closing the issue for now as this is the expected behavior. Feel free to reopen it if you have any questions left.

Thanks,
Kateryna.

@katmoon katmoon closed this as completed May 26, 2016
magento-engcom-team pushed a commit that referenced this issue Feb 28, 2019
[TSG] MFTF for 2.2 (pr15) (2.2-develop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

5 participants