[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time zone changes and "tar --list --verbose"

From: Sergey Poznyakoff
Subject: Re: Time zone changes and "tar --list --verbose"
Date: Wed, 28 Oct 2020 14:22:42 +0200

Hi Rainer,

> creating a "tar" archive in summer (daylight saving time) and immediate-
> ly listing it using
>    tar --list --verbose -f ...
> and later in winter (normal time) listing it again with the same command
> results in time stamps being one hour off due to time zone shifting.

Time stamps are saved in a tar archive as number of seconds since the
Epoch.  The timezone information is not preserved.

> Is there a way to prevent this?

No, there is not (apart from setting the TZ variable before running tar).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]