Forum
Timezone + Shop orderCreated
I have set my timezone via the config file to Bogota time like so:
define('PERCH_TZ', 'America/Bogota');
I've just been doing some testing and after purchasing a product and being redirected to the order confirmation page, my order created date is showing as GMT. It's output using:
<perch:shop id="orderCreated" type="date" format="d F Y, H:i" />
I was expecting it to output the date/time for the timezone I set up in config.
Yes, I would expect that too. Can you post your diagnostics report?
Please can you look into this or let me know if you need more information. Thanks
Yes, we'll certainly be looking into it.
Small update: I noticed too that the GMT time is displayed in the admin for the forms addon where it says when the 'Most recent' form was submitted. So it's as if Perch as a whole is ignoring the PERCH_TZ config setting.
The server itself is based in Texas and my current location is the UK (BST) so can't figure out where GMT would be coming from...
The GMT is because everything is stored as GMT (or UTC, but same thing) and then shifted for timezone from there.
Hi Drew. Has this been confirmed as a bug yet?
It certainly sounds like a bug, but I've not been working on Shop yet, so I've not looked into it.