dreerr Posted December 26, 2013 Share Posted December 26, 2013 In my timezone UTC+1 (also set in $config) the value of the $page->created field is always one hour early, so a newly created page is already one hour old. How can I correct this? Do I need to add the hour manually, this would be somehow inconvenient and unclean. I need to query last post and see how old they are in comparison to the actual time. Thanks, so long, Julian. Link to comment Share on other sites More sharing options...
teppo Posted December 26, 2013 Share Posted December 26, 2013 @Julian: since PW is simply using MySQL NOW() function, I'm guessing that your database has different opinion about correct timezone than PW. Typically it would be using the server timezone, but that's not entirely certain. This Stack Overflow thread contains some tips that could prove useful here. 4 Link to comment Share on other sites More sharing options...
dreerr Posted January 5, 2014 Author Share Posted January 5, 2014 Thanks teppo, will look into it! 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