jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Müller <thomas.muel...@day.com>
Subject Re: NodeType.setProperty behaviour
Date Thu, 04 Feb 2010 16:08:24 GMT
Hi,

I think what happens is that in your getCalToGMT0 method you both
change the timezone to UTC (which is probably what you want) but also
the time.

I would try using:

Calendar c = Calendar.getInstance();
... set fields accordingly, if needed ...
c.setTimeZone(TimeZone.getTimeZone("UTC"));

But the Calendar methods are a bit dangerous, see also
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4827490

Regards,
Thomas

Mime
View raw message