Since daylight savings happened a little over a week ago my database has been messed up and everything is still ahead 1 hour so i'm trying to figure out best way to resolve this and prevent this issue moving forward.
Right now its 11/8/2017 at 2:16 PM EST and when I submit something using datetime=NOW()
the output comes out as 11/8/2017 at 3:16 PM EST
Before daylight savings hit, of course it was working fine, however now its off an hour.
I've tried using
date_default_timezone_set('America/Chicago');
and then also tried date_default_timezone_set('UTC');
but both end up displaying the exact same date/time with the output using:
echo date( 'm/d/y g:i A', strtotime($row['ticket_assigned_date']));
I saw other methods like using CONVERT_TZ('2010-01-01 12:00','+00:00','-07:00')
however this i really want to avoid because it seems terrible to use over a ton of select statements, also I have to make it so my site is full US friendly, so them setting a timezone in their settings would be best and having it set in PHP would be a way better option if possible.
Also moving forward I want to make sure that if the time saved is really at 2:16 PM EST and then daylight savings hit that the stored value will of course still return 2:16 PM EST in the future no matter what.