powered by Jive Software

Flexible Offline Messages nodeID question

Hi!

When requesting a list of offline messages the timestamp/nodeID seems a few hours wrong.

I send:

After extracting the node-info and running a System.out.println() i get:

Message ID: 2007-05-21T12:34:54.776Z

Message ID: 2007-05-21T12:42:39.851Z

Message ID: 2007-05-21T12:56:44.305Z

Message ID: 2007-05-21T12:58:03.644Z

It’'s a list of messages that I have sent, but the time is exactly 2 hours after my local time: 2007-05-21T14:58:03.644Z.

How come?? Openfire is running on my local machine and “Server Uptime: 1 minute – started May 21, 2007 2:56:00 PM”(in Admin console) looks correct.

Is the timezone in the system handling Offlinemessages set wrong??

Also worth noting is that windows claims that “Stockholm/Berlin…” has GMT1, but Openfire/Java thinks that “Stockholm/Berlin…” has GMT2. http://wwp.greenwichmeantime.com/time-zone/europe/european-union/sweden/time.htm also thinks that It should be GMT2, but http://www.umsl.edu/services/govdocs/wofact2001/ref/pdf/802801.pdf thinks it should be GMT1(since GMT is supposed to be equal UTC)… I’'m confused, does anyone know what time it is?

Ok, a reply to myself.

It seems like the nodestring create a new Calendar-instance with the timezone hardcoded to “UTC”, which seems right since we get a common reference. I guess it would be dumb of me to try to extract the messagetime from the nodeinformation anyway, since it’'s not sure that other servers use a timestamp as nodeID…

And about the timezones… well, i’'m still confused.