[jcifs] timezone problems

Julian Reschke julian.reschke at gmx.de
Mon Mar 8 20:19:43 GMT 2004


Michael B Allen wrote:
> Julian Reschke said:
> 
>>I'm not sure why JCifs is trying to compensate for DST differences here.
> 
> 
> Because it's required to generate the correct time. See the CIFS docs for
> details.

Can you point to a specific section...?

Do we agree that the correct time *indeed* is measured in milliseconds 
since the Epoch? Why would that value depend on DST settings on either 
client or server?

>>Anyway, this seems to the reason why java.io.File and SmbFile report
>>different times for the same file on my machine, if the timestamp falls
>>into a DST month.
> 
> 
> Please provide an example program that illustrates this problem. I just
> recently checked getting and setting stamps 6 months back and confirmed
> that examples/FileInfo.java reports the same as what is displayed in
> Explorer on the target (on Windows NT 4 anyway).

Well, I did, didn't I? See:

 >>[1] <http://lists.samba.org/archive/jcifs/2004-February/002942.html>

If you can't reproduce this, we should find out why. If you can, I think 
this is a bug :-)

BTW: I'm prepared to believe that this adjustment is needed on *some* 
platforms, but it doesn't seem to be the case for either W2000 
Professional nor for W2003.


Regards, Julian


-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760


More information about the jcifs mailing list