Jump to content

Time inside processwire not correct


Karl_T
 Share

Recommended Posts

Greeting. I am having hard time trying to make the time inside processwire correct. I have a correct server time. I have a correct time zone inside config.php, echo correctly in php. I get correct timestamp when echo in php and using tracy debugger console. However, the time stored for creation, modified, changelog are all using Unix Timestamp, i.e. UTC, while my correct time should be UTC+8. What is the possible config having this behavior?

Link to comment
Share on other sites

Fixed. The time of modified, created and changlog(module) is reading the database server timezone. I am using a remote database, so the timezone is different from the web server. The issue fixed after changing the remote database server timezone.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...