[cfarm-users] Migration of gcc119

Paul Eggert eggert at cs.ucla.edu
Mon Aug 21 05:20:34 CEST 2023


On 8/20/23 21:56, Peter Gutmann wrote:
> If you bundle something up on a system that's (say) 12 hours ahead of the
> target system and unpack it there, many of the files will have dates up to 12
> hours in the future

Not if "12 hours ahead" merely means a time zone difference. Tarball 
timestamps use Universal Time. Local time is only for display.

$ TZ=Pacific/Auckland sh -c 'date; touch foo; ls -l foo; tar cf tar foo'
Mon Aug 21 03:16:08 PM NZST 2023
-rw-rw-r-- 1 eggert eggert 0 Aug 21 15:16 foo
$ TZ=America/Los_Angeles sh -c 'mkdir d; cd d; tar xf ../tar; date; ls 
-l foo'
Sun Aug 20 08:16:12 PM PDT 2023
-rw-rw-r-- 1 eggert eggert 0 Aug 20 20:16 foo



More information about the cfarm-users mailing list