Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
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.
Required, but never shown