Problem with saved timestamp
-
Hi, I have my store location timezone set to London (latest plugin version).
When I placed a test order just now (2nd June 2020) the timestamp being saved in “delivery_date” custom field is:
1591052400
… which translates to 11pm on 1st June 2020 – wrong!The order date shows correctly as 2nd June 2020 in Woocommerce, but I can’t work out why the timezone is being saved incorrectly into the custom field.
This is a problem as I’m then converting the timestamp back into a date to print on the automatic receipts and it’s getting the wrong date.
I also notice that the plugin says the timezone for London is GMT/UTC +00:00, but in London right now we are actually on BST which is +01:00 from GMT/UTC. I’ve tried selecting a timezone that’s +1 hour, but that causes other issues like the available list of delivery slots being wrong by an hour at checkout.
Any suggestions as to why the timestamp is being set to the incorrect date would be very gratefully received as I’m out of ideas now!
Thanks in advance ??
- The topic ‘Problem with saved timestamp’ is closed to new replies.