Have you ever had to work with date / times in c / c++ and had to deal with that F###ing Daylight Savings Time? Even more, have you spent hours, days, weeks trying to force everything to UTC / GMT ?
It took me a while, but I figured it out. Include this in your main() and it seems to do the trick:
if (_putenv((char *) “TZ=GMT”))
if (putenv((char *) “TZ=GMT”))
wxMessageBox(“Failed setting env for date/time”); // Somehow notify that the update failed.
I have used this on Win32 (XP) and RedHat derivatives. I can’t guarantee support elsewhere, but I believe this should work on all POSIX systems.