When handling hardcoded epochtimes it's a good idea to also set the
timezone which that time represents. Localtime only returns the time
for the timezone that the machine is running on.

For more information on "TZ" see "man date"