[jcifs] timezone problems

Julian Reschke julian.reschke at gmx.de
Wed Mar 10 08:05:59 GMT 2004


Michael B Allen wrote:
> Julian Reschke said:
> 
> <snip program>
> 
> This below is what I get when I run your program with 0.8.1. Is this
> right, wrong or what? The SMB path smb://miallen3/tmp/ refers to /tmp
> which I assume is supposed to refer to the same directory?
> 
> I do believe createFile was quite broken in b1. Maybe that factors into
> this somehow?
> 
> Pls advise,
> 
> Mike
> 
> [miallen at miallen3 jcifs]$ java -Djcifs.properties=../miallen.prp
> TestTimeStamps smb://miallen3/tmp/ /tmp/
> == TIMEZONE INFO ==
> Default TimeZone is:
> java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=3,startDay=1,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]
> 
> == JAVA.IO.FILE INFO ==
> setting to: 961632000000
> file summer lastmod: 961632000000 11130 Wed Jun 21 20:00:00 EDT 2000
> setting to: 946080000000
> file winter lastmod: 946080000000 10950 Fri Dec 24 19:00:00 EST 1999
> 
> == JCIFS.SMB.SMMFILE INFO ==
> smb summer lastmod: 961632000000 11130 Wed Jun 21 20:00:00 EDT 2000
> smb winter lastmod: 946080000000 10950 Fri Dec 24 19:00:00 EST 1999

This is the expected output (the one I'm getting with JCifs running on 
Linux, talking to a Samba share on the same machine).

(Which version of Samba was this -- do I still need to test with 
something newer that 2.2.0?)

The comparable setup on W2K produces the discrepancy.

Regards, Julian

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


More information about the jcifs mailing list