Jump to content

PHP Date - Saskachewan


allin44

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.