Jump to content
xisto Community
Sign in to follow this  
4dsystems

Time Zone Setting

Recommended Posts

Help! Guys! I have a php script which shows me the time and I think the server time set differently. Is there any way I can change my individual time zone. It looks very odd on the web page. I am using the Indian Standard Time.

Share this post


Link to post
Share on other sites

Check in the Php Language Topic. There is a calendar / yahoo thread which discusses how to mod the time relative to the server time. Buffalohelp is the original poster on that thread if it helps.

Share this post


Link to post
Share on other sites

If you can't find that, I found a tutorial you can use. http://www.purephotoshop.com/ It shows the many different ways you can post the time and date.

<?php date('D M j G:i:s T Y'); ?>

The T in the code is the time zone you can type in. I don't know exactly if it changes the time according to that time zone though. You might have to test it. Also I don't know how much of the date and time you want to show. This page has a chart explaining what all the letters show. http://www.phpspot.com/tutorials/index.php?id=1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.