[ https://issues.apache.org/jira/browse/TRINIDAD-1769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13230004#comment-13230004 ]
Reshmi Choudhury commented on TRINIDAD-1769: -------------------------------------------- Hi Mathias, Currently I’m using Trinidad JARs of version1.0.10 and I see the date-picker-popup of the inputDate-component sets the wrong day into the <input>-element only when lightweight dialogs flag is on. I have made the below changes in the function _getDayLightSavOffset(a0) of DateField.js inside META-INF\adf\jsLibs as suggested in http://eldoradosoftware.blogspot.in/2010/11/trinidad-date-picker-issue-with.html and now I do not see the problem of setting wrong date into the <input>-element whether lightweight dialogs flag is on or not. function _getDayLightSavOffset(a0) { var a1=new Date(); var a2=new Date(a0); var a3=a2.getTimezoneOffset()-a1.getTimezoneOffset(); return(0); } Could you please provide a fix in the current version or in the latest released version for the reported issue. Thanks in advance. > datepicker selects wrong day if ENABLE_LIGHTWEIGHT_DIALOGS is true > ------------------------------------------------------------------ > > Key: TRINIDAD-1769 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1769 > Project: MyFaces Trinidad > Issue Type: Bug > Environment: Trinidad 1.2.13 / MyFaces 1.2.X / Tomcat > Reporter: elmar kretzer > > The date-picker-popup of the inputDate-component > sets the wrong day into the <input>-element. > E.g.: Select October and click "26". Then > "25.10.2007" is set into the <input>-element. > This error occurs with the following months: > - April > - May > - June > - July > - August > - September > - October > It is related to Ticket https://issues.apache.org/jira/browse/TRINIDAD-790 > The provided fix in the ticket does not work if > <context-param> > > <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name> > <param-value>true</param-value> > </context-param> > and your timezone has a DST offset. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira