Re: Get last write time bug!
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Tue, 17 May 2005 17:18:53 +0100
Vladimir <xozar@xxxxxx> wrote:
> > If calling SetLastWriteTime with the value returned by GetLastWriteTime
> > changes the value, that defeinitely seems odd.
>
> Yes, and it depends entirely on time value.
>
> 22.10.98 03:06:06 transformed to 22.10.98 02:06:06 (bug)
> but for example
> 23.10.98 03:06:06 is not transformed to 23.10.98 02:06:06 (not bug)
Out of interest, is that the date that daylight saving time changes in
your locale?
> How about this in .Net Framework 2.0?
> I don't have it beta version.
Me either, I'm afraid.
> > Have you tried using the UTC versions? (File.SetLastWriteTimeUtc etc)
>
> In case of said above times that's all right with utc versions.
Right - I'd suggest using the UTC versions then. In fact, I think
that's a better bet usually anyway :)
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: Get last write time bug!
- From: Vladimir
- Re: Get last write time bug!
- References:
- Get last write time bug!
- From: Vladimir
- Re: Get last write time bug!
- From: Jon Skeet [C# MVP]
- Re: Get last write time bug!
- From: Vladimir
- Re: Get last write time bug!
- From: Jon Skeet [C# MVP]
- Re: Get last write time bug!
- From: Vladimir
- Get last write time bug!
- Prev by Date: Re: Server.Transfer vs Response.Redirect
- Next by Date: RE: Parser Error Message: Execution permission cannot be acquired.
- Previous by thread: Re: Get last write time bug!
- Next by thread: Re: Get last write time bug!
- Index(es):
Relevant Pages
|