japapa Posted February 17, 2012 Posted February 17, 2012 When time is 21 O'clock in my country My server shows the time 9:30 AMI Want to set my server time zone to GMT +3:30Can some one do this for me or tell to me how i can do this? Quote
anush Posted February 17, 2012 Posted February 17, 2012 @japapa where do you want to change the time is it in forum,cms or with time obtained from mysql or php. Quote
viclou Posted February 18, 2012 Posted February 18, 2012 I also want to see the server clock updated and syncronized, too. Johnny's clock is around 30 minutes off from UTC.... Quote
Ice IT Support Posted February 19, 2012 Posted February 19, 2012 I thought the server times were set to PST, since that is their physical location? Quote
jje Posted February 19, 2012 Posted February 19, 2012 According to HelioHost's timezone checker, the time is correct:http://heliohost.grd.net.pl/server-time/ Quote
Piotr GRD Posted February 19, 2012 Posted February 19, 2012 The time on both - Stevie and Johnny - are correct (except small issue with time in HTTP headers sent from Stevie being 24 seconds behind for some reason, while time served inside PHP scripts with date and time functions is correct). Default timezone set on both servers is "America/Los_Angeles" - which is PST in winter and PDT in summer. If you want to use different timezone you have to specify your own value either inside of your PHP scripts (in every one of them) with:putenv("TZ=xyz");or with:date_default_timezone_set("xyz"); OR for all your scripts with using the following entry in .htaccess file:SetEnv TZ xyz where xyz will be selected timezone identifier. All timezones you can find in here:http://php.net/manual/en/timezones.php If I'm right then most probably best for you will be using "Asia/Tehran" timezone, as this is the place where GMT+03:30 (IRST) is used in winter, and GMT+04:30 (IRDT) in summer. Quote
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.