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..... 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. 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 ?? 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'); ?> Link to comment https://forums.phpfreaks.com/topic/264279-timezone-in-php/#findComment-1354364 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.