Inconsistent Times being stored in XPages

假如想象 提交于 2020-01-11 09:42:09

问题


If I have an XPage with a Time field on it:

<xp:inputText id="inputText2" value="#{document1.Time}"
    defaultValue="#{javascript:@Now()}">
    <xp:this.converter>
        <xp:convertDateTime type="time"
            ignoreUserTimeZone="false"
            timeStyle="full">
        </xp:convertDateTime>
    </xp:this.converter>
</xp:inputText>

My server is set to UK time, when I save the document and then view it again the time will have moved on by one hour.

In my xsp.properties file I have:

xsp.user.timezone=true
xsp.user.timezone.roundtrip=true

Is this a bug or me not having configured my server correctly?


回答1:


This is a bug and regression (the above works in 852). IBM is working on a fix. More on that later, but in the meantime call this in with Support and when a hotfix becomes available we'll get that to you.




回答2:


I have Mark Myers to thank for this answer.

It seems that the issue is time zone related, but odd. The server is set to observe daylight savings, if we turn this off then the code works as expected. The problem then is that "classic" Domino apps no longer work. So, in my mind, I consider this a bug. But at least for now we have a solution.

Thanks for the assistance.

Matt




回答3:


could this be an issue with daylight savings being set somewhere?




回答4:


I have faced the same Issue, After Install FixPack3 in lotus notes client 8.5.3 then this has been resolved

Thanks

Richard Arun kumar.A



来源:https://stackoverflow.com/questions/10699074/inconsistent-times-being-stored-in-xpages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!