I have a simple XPage that is doing a partial refresh every 30 second for the demo purpose.
And randomly new Date()
is returning a date that is one hour wrong.
But if I do
var d=session.createDateTime(new Date())
d.setNow()
it will return the correct datetime allways.
I've also tried printing everything on the console and the result is the same. A database showing the problem can be found here http://l.bitcasa.com/gco-V3cq
Anybody know what could cause this ?