0

I need to use current store timestamp in js or phtml file, how can always have current store date-time or timestamp when phtml is cached and I cannot pass this variable to js. Any help will be very appreciated.

0

Maybe it will be enough to set store timezone as a variable in cached phtml and then use it to create Date object with correct timezone.

  • How i can predict summer time and other in js? – Petro Chaikivskyi Oct 8 at 19:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.