Search code examples
datetimetimezonexpageslotus-domino

Dates are adjusted for users only at midnight on my xpages


We have a really strange problem in xpages regarding dates, the Notesdocument we have contain a date field and the value is only a date, there is no time portion.

In the xpage I have specified to display the date as a date/time value. the date display correctly on the webpage but we are now getting reports from users who login at night (around midnight) and see the date as adjusted by one day. if the same people login at daytime the date is correct so this only seem to happend around midnight

I have tried to change my clock on my client to around midnight but that does not reproduce it so I assume this is a server issue.

The domino server have correct date/time and we are using the latest version of Domino

any ideas?


Solution

  • The issue is related to not having the TimeZone specified in the date / time field. We ran into this just yesterday. If you don't have the TZ specified, it seems to assume UTC and will adjust accordingly. Include the time zone and your field will stop adjusting erroneously.