ds111 Posted January 20, 2011 Share Posted January 20, 2011 Please help! User enters Date (that is somewhere in future, few hours or maybe few years). I need to store in MYSQL Date minus 6 hours keeping in mind daylight savings time. I tried to convert date to unix timestamp and subtract 6*60*60. Works great, but does not take into consideration daylight savings time. Link to comment https://forums.phpfreaks.com/topic/225127-php-date-manipulation-with-daylight-savings-time/ Share on other sites More sharing options...
BlueSkyIS Posted January 20, 2011 Share Posted January 20, 2011 check out http://www.php.net/manual/en/datetime.add.php Link to comment https://forums.phpfreaks.com/topic/225127-php-date-manipulation-with-daylight-savings-time/#findComment-1162776 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.