everlifefree Posted January 21, 2008 Share Posted January 21, 2008 Hi my site loads off an index.php file first and then loads other php file and tpl files. Is there any way that I can put something into the index.php that will offset the time on the site depending on the timezone the viewers computer is running off of. Quote Link to comment https://forums.phpfreaks.com/topic/87013-timezone/ Share on other sites More sharing options...
everlifefree Posted January 22, 2008 Author Share Posted January 22, 2008 anybode? Quote Link to comment https://forums.phpfreaks.com/topic/87013-timezone/#findComment-446417 Share on other sites More sharing options...
The Little Guy Posted January 22, 2008 Share Posted January 22, 2008 this would require javascript http://w3schools.com/js/tryit.asp?filename=tryjs_timing_clock Quote Link to comment https://forums.phpfreaks.com/topic/87013-timezone/#findComment-446423 Share on other sites More sharing options...
revraz Posted January 22, 2008 Share Posted January 22, 2008 If you wanted to use just PHP, then use a Timezone Offset value in a database and read that in, then just subtract the offset value. That's what I do. Quote Link to comment https://forums.phpfreaks.com/topic/87013-timezone/#findComment-446427 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.