liomon41 Posted June 16, 2012 Share Posted June 16, 2012 I need to write a script in php that lets you know what timezone you are in ... help..... Quote Link to comment https://forums.phpfreaks.com/topic/264279-timezone-in-php/ Share on other sites More sharing options...
trq Posted June 16, 2012 Share Posted June 16, 2012 PHP executes server side. Unless you have your users input there timezone, php has no way of knowing. Quote Link to comment https://forums.phpfreaks.com/topic/264279-timezone-in-php/#findComment-1354333 Share on other sites More sharing options...
liomon41 Posted June 16, 2012 Author Share Posted June 16, 2012 okay .. so is there a way you can find out what time is it in your local server ?? Quote Link to comment https://forums.phpfreaks.com/topic/264279-timezone-in-php/#findComment-1354337 Share on other sites More sharing options...
xyph Posted June 16, 2012 Share Posted June 16, 2012 <?php date_default_timezone_set('canada/pacific'); echo date('r'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/264279-timezone-in-php/#findComment-1354364 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.