I’ve a bunch of data stored in a mysql database as a bunch of unix style timestamps (in UTC). Previously, these have been formatted via Perl’s gmtime(). It seems that MySQL’s FROM_UNIXTIME() function tries to be helpful, and correct for daylight savings, but I really don’t want it to.
Is there a nice handy method to convert the results from the system timezone (GMT/BST) to UTC or alternately determine if DST was in effect for a particular time?
Have you tried:
If you want to use named timezones, you can see this page for more information, and how to fill the timezone tables on your system.