[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Query about correcting for DST with Wget
From: |
Tim Ruehsen |
Subject: |
Re: [Bug-wget] Query about correcting for DST with Wget |
Date: |
Tue, 15 Nov 2016 10:41:40 +0100 |
User-agent: |
KMail/5.2.3 (Linux/4.8.0-1-amd64; KDE/5.27.0; x86_64; ; ) |
On Monday, November 14, 2016 5:47:36 PM CET Eli Zaretskii wrote:
> > Date: Sun, 13 Nov 2016 21:39:32 +0100
> > From: Jernej Simončič <jernej|address@hidden>
> >
> > On Sunday, November 13, 2016, 19:53:06, Eli Zaretskii wrote:
> > > Does "while DST is in effect" mean that you download the file when DST
> > > is in effect, or you examine the timestamp of the file when the DST is
> > > in effect?
> >
> > I download the file when DST is(n't) in effect (I download that
> > specific URL quite often, on different computers).
>
> Then yes, it's a known problem with how the MS-Windows implementation
> of the utimes function works: it converts (internally) from local time
> to UTC using the current setting of the DST flag, not its setting at
> the time being converted. The irony of this is that there should be
> no need to go through local time in this case, because the timestamp
> provided by Wget is in UTC to begin with, and the low-level Windows
> APIs that timestamp files accept UTC values.
>
> If we care about this, we could have a private implementation of
> utimes in mswindows.c, which would DTRT in the use cases needed by
> Wget.
Wget uses utime() if available. This function is not covered by gnulib and it
is obsoleted by POSIX 2008.
Instead we should use utimens which is covered by gnulib and circumvents
several issues. Currently, I can see no special Windows code in gnulib - but
if the issue persists, it should IMO be fixed in gnulib.
WDYT ?
Tim
signature.asc
Description: This is a digitally signed message part.
- [Bug-wget] Query about correcting for DST with Wget, Tim, 2016/11/10
- Re: [Bug-wget] Query about correcting for DST with Wget, Eli Zaretskii, 2016/11/11
- Re: [Bug-wget] Query about correcting for DST with Wget, Jernej Simončič, 2016/11/13
- Re: [Bug-wget] Query about correcting for DST with Wget, Eli Zaretskii, 2016/11/13
- Re: [Bug-wget] Query about correcting for DST with Wget, Jernej Simončič, 2016/11/13
- Re: [Bug-wget] Query about correcting for DST with Wget, Eli Zaretskii, 2016/11/14
- Re: [Bug-wget] Query about correcting for DST with Wget, Tim Ruehsen, 2016/11/14
- Re: [Bug-wget] Query about correcting for DST with Wget,
Tim Ruehsen <=
- Re: [Bug-wget] Query about correcting for DST with Wget, Eli Zaretskii, 2016/11/15
- Re: [Bug-wget] Query about correcting for DST with Wget, Tim Ruehsen, 2016/11/14