redwing Posted January 2, 2012 Share Posted January 2, 2012 I have been tackling this problem for a while. Tried a lot of hints and tricks, but I still couldn't find an answer. Hopefully someone can give me some tips on how to finally solve this. Currently, my shop's on 1.4.0.17. The time zone I have verified as set to America/Los_Angeles. In the configuration table in the db, I have also confirmed it has the value of America/Los_Angeles, which also reflect the value in the timezone table. The server's hwclock is confirmed to be on PST, and so is date(). PHP 5.3.2 is also reporting date as America/Los_Angeles. php.ini's date.timezone is also set to America/Los_Angeles. However, the time zone setting apparently doesn't apply. Orders are being placed in UTC. Looking at the order entry dates, everything is in UTC time. Changing the time zone setting to anything takes no effect. I have also tried forcing a time zone in config.inc, to no effect either. If I change the hardware clock, the clock changes too, but that's not really a fix, since time zones do not apply. I don't know where else I can possibly check to see if the time zone is not being applied. If there is anything else I can try, please let me know, because I'm out of ideas. Any help is much appreciated! Link to comment Share on other sites More sharing options...
redwing Posted January 3, 2012 Author Share Posted January 3, 2012 So far, I've found that something in prestashop's rewriting the time zone to UTC. Looks like if I force a default time zone set in certain parts of the page, the time would display differently. Besides the database, where else would it specifically default the time zone to UTC? Link to comment Share on other sites More sharing options...
redwing Posted January 5, 2012 Author Share Posted January 5, 2012 Nevermind, it's been fixed. Link to comment Share on other sites More sharing options...
isl-hk Posted June 4, 2012 Share Posted June 4, 2012 I have same problem. How did you fix it?? Link to comment Share on other sites More sharing options...
samsirocco Posted March 29, 2013 Share Posted March 29, 2013 Hello, it seems I havethe same problem with version 1.4.8. My php date() function return correct time for Montreal timezone and my shop is setted to America/Montreal timezone, but in my order section, all orders are added with 4 hours, which it seems to be UTC time. Does anyone had already this problem? Thanks! Link to comment Share on other sites More sharing options...
[email protected] Posted May 1, 2018 Share Posted May 1, 2018 On 1/5/2012 at 10:37 AM, redwing said: Nevermind, it's been fixed. Please share with us how to fix this??? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now