rahish Posted January 31, 2007 Share Posted January 31, 2007 Hi,I am running wordpress on Apache and when I post a message the time and date are set to January 1st 1970. It appears that the UTC time of the server is set to this date. I am not sure how to change it. Can I do it in the httpd.conf or is it php.ini?Any ideas Quote Link to comment https://forums.phpfreaks.com/topic/36467-changing-server-time/ Share on other sites More sharing options...
trq Posted January 31, 2007 Share Posted January 31, 2007 This is the time on the actual server OS, nothing to do with apache or PHP. So... if its a shared server you can't change it, if however it is a dedicated machine and you can get to the command line (Linux) take a look at the date command.[code]man date[/code] Quote Link to comment https://forums.phpfreaks.com/topic/36467-changing-server-time/#findComment-173625 Share on other sites More sharing options...
steviewdr Posted January 31, 2007 Share Posted January 31, 2007 The date/time/timezone needs to be set at the server level, not the httpd level.Take a look at:tzconfigtimezone config.-steve Quote Link to comment https://forums.phpfreaks.com/topic/36467-changing-server-time/#findComment-173893 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.