allin44 Posted July 26, 2009 Share Posted July 26, 2009 Basically, I am putting in a schedule, using a form, only problem is, the times are from BC -> Manitoba, which are all different timezones. BC/AB are fine, the problem lies with Saskatchewan who does not follow DST.. the code I am using basically takes the date/time out of the form, converts it to one string, goes strotime(converts timezone to CST) and puts it in the DB.. IE date_default_timezone_set('America/Chicago'); $comp = "July 26, 2009, 2:00PM MST"; //assume this is from the form $time = strtotime($comp); echo(date("D F d @ gA T", $time)); when it echos the date it would convert it to CST which is perfect.. However, to the best of my knowledge there is no acceptable 3 letter timezone identifier for SK.. Link to comment https://forums.phpfreaks.com/topic/167527-php-date-saskachewan/ Share on other sites More sharing options...
allin44 Posted July 26, 2009 Author Share Posted July 26, 2009 nm all I did was added a new option to the drop down for timezone, and added an if.. if DST then just add the one hour Link to comment https://forums.phpfreaks.com/topic/167527-php-date-saskachewan/#findComment-883428 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.