in reply to Re^2: Getting the timestamp of a file
in thread Getting the timestamp of a file

I suspect the time returned by localtime is correct and the time returned by whatever you think is doing it accurately is not. If it were purely a timezone issue it wouldn't be off by 47 minutes.

-Paul