On Wed, Aug 11, 2021 at 03:44:33PM +0200, Ingo Schwarze wrote:
> Hi,
>
> > ok gerhard@
>
> Thanks for reporting, for the initial patch, and for checking the
> final one. This now committed.
>
> Yours,
> Ingo
Thanks to all for working together and getting this fixed.
Bryan
Hi,
> ok gerhard@
Thanks for reporting, for the initial patch, and for checking the
final one. This now committed.
Yours,
Ingo
>> Index: date.c
>> ===
>> RCS file: /cvs/src/bin/date/date.c,v
>> retrieving revision 1.56
>> diff
Hello Ingo,
thanks for looking into this.
On 8/6/21 8:13 PM, Ingo Schwarze wrote:
Hi Gerhard and Bryan,
Gerhard Roth wrote on Mon, Aug 02, 2021 at 10:36:05AM +0200:
Bryan Vyhmeister found a strange behavior in date(1):
# date -f %s -j 1627519989
Thu Jul 29 01:53:09 PDT 2021
Hi,
sorry for the afterthought, i just noticed that the Subject: line
is misleading. This patch has nothing to do with -j. If -j is not
specified, this patch changes the value passed to adjtime(2) or
settimeofday(2), which arguably matters even more than something
merely printed on stdout.
Howe
Hi Gerhard and Bryan,
Gerhard Roth wrote on Mon, Aug 02, 2021 at 10:36:05AM +0200:
> Bryan Vyhmeister found a strange behavior in date(1):
>
> # date -f %s -j 1627519989
> Thu Jul 29 01:53:09 PDT 2021
> # date -u -f %s -j 1627519989
> Thu Jul 29 00:53:09 UTC 2021
>
> Look
Hi,
Bryan Vyhmeister found a strange behavior in date(1):
# date -f %s -j 1627519989
Thu Jul 29 01:53:09 PDT 2021
# date -u -f %s -j 1627519989
Thu Jul 29 00:53:09 UTC 2021
Looks like PDT is GMT-1, which of course is wrong.
The problem arises from the -f option.