日期仅在我的xpages午夜调整为用户 [英] Dates are adjusted for users only at midnight on my xpages

查看:137
本文介绍了日期仅在我的xpages午夜调整为用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在关于日期的xpages中有一个非常奇怪的问题,我们包含一个日期字段的Notesdocument,该值只是一个日期,没有时间部分。

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.

在x页面中,我指定了将日期显示为日期/时间值。日期在网页上正确显示,但是我们现在正在从晚上(大约午夜)登录的用户获取报告,并将日期调整为一天。如果同一个人在白天登录日期是正确的,所以这似乎只是在午夜左右发生

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.

多米诺骨牌服务器有正确的日期/时间,我们正在使用最新版本的Domino

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

任何想法?

推荐答案

该问题与日期中没有指定TimeZone有关/时间字段。昨天我们遇到了。如果你没有指定TZ,它似乎假设UTC,并相应调整。包括时区,您的字段将会错误地停止调整。

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.

这篇关于日期仅在我的xpages午夜调整为用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆