Jump to content

PHP date manipulation with daylight savings time


ds111

Recommended Posts

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.

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.