One choice would be to use gmtime in place of localtime - your file names would no longer be local time, but there's no issue with the time switch and everything would still be self consistent.
Thanks!
That should actually work. I'll have to adjust the hr to be -6 or something like that (otherwise I'll try to download files from the future), but that should work.