Thanks Gentlemen for your assist. That of course works. This has to be the best place on the internet for quick and accurate responses. You guys are the best. Thanks again!
Is there a particular reason why you are not extracting the time directly from the database in the format you want and are extracting in one format and then converting to another?
PHP time uses the server time offset including DST time modifications, MySQL’s time function does not.
Instead of directly modifying by a set amount you should be using DateTime’s get_offset function so that you don’t have to manually fix this twice every year.
There are a number of other issues related to this based on problems in mysql with how it stores timestamps that, as far as I’m aware, have not been fixed in most live development cases. You can read up on some of those here but since in your case it’s clearly just the DST offset I’d strongly recommend just doing what I mentioned above, especially over manually modifying the date with fixed numbers.