Another possible issue is private static final long _MILLIS_IN_DAY = 1000L * 60 * 60 * 24; found in ChooseDateRenderer. All dates ms are calculated relative to that offset applied from a base date (so day5 is day1 + 4*_MILLIS_IN_DAY). While looking at a possible patch for the first day of week issue, I took a note to compare the use of that offset compared with Calendar to make sure the ms values match, because it looked potentially dangerous when daylight saving is active, especially at hour change dates when the amount of ms in the days varies by ± 3,600,000ms. Since the issue seems to happen mainly with the calendar popup, that might be the true culprit.
~ Simon On 9/17/07, Simon Lessard <[EMAIL PROTECTED]> wrote: > > Fishy, but in any case, I think the problem occurs only if one part of the > code use a TimeZone while another uses a different one. I guess we'll have > to run through the code and find all TimeZone usages to make sure they're > consistently using the same value, because it must not be the case > currently. > > ~ Simon > > On 9/17/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > > > > I think this comes from the JSF spec > > > > "If a timezone has been specified, it must be passed to the underlying > > DateFormat instance. Otherwise the "GMT" timezone is used." > > > > > > http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api/javax/faces/convert/DateTimeConverter.html > > > > On 9/17/07, Simon Lessard <[EMAIL PROTECTED]> wrote: > > > I think I found the culprit: > > > > > > > > org.apache.myfaces.trinidad.convert.DateTimeConverter._DEFAULT_TIME_ZONE > > > = TimeZone.getTimeZone("GMT"); > > > > > > I think we should change that to : > > > > > > > > org.apache.myfaces.trinidad.convert.DateTimeConverter._DEFAULT_TIME_ZONE > > > = TimeZone.getDefault(); > > > > > > That would set the default TimeZone to the server configured time > > zone. > > > > > > > > > ~ Simon > > > > > > > > > On 9/17/07, Simon Lessard <[EMAIL PROTECTED]> wrote: > > > > Ah yeah, GMT-5 or else is not daylight saving enabled either. Only > > the > > > long America/New York (or something like that) format works with it. > > > > > > > > > > > > Regards, > > > > > > > > ~ Simon > > > > > > > > > > > > > > > > On 9/17/07, Stephen Booth < [EMAIL PROTECTED]> wrote: > > > > > Simon, > > > > > > > > > > Thanks very much for the response - it was exactly that problem. > > I've > > > > > set the time-zone in trinidad-config.xml to my timezone (GMT) and > > that > > > > > has fixed it. > > > > > > > > > > Thanks very much for your help. > > > > > > > > > > Stephen > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Simon Kitching [mailto:[EMAIL PROTECTED] ] > > > > > Sent: 14 September 2007 14:07 > > > > > To: MyFaces Discussion > > > > > Cc: sandeep gururaj > > > > > Subject: RE: [Trinidad] tr:inputDate problem > > > > > > > > > > Are you sure the problem isn't this one? > > > > > http://wiki.apache.org/myfaces/FAQ#Date > > > > > > > > > > > > > > > ---- sandeep gururaj < [EMAIL PROTECTED]> schrieb: > > > > > > Not sure why, I face the same problem if I use IE7. When on IE6, > > it > > > > > > works properly. > > > > > > > > > > > > > > > > > > > > > > > > ~Sandeep > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Stephen Booth [mailto: [EMAIL PROTECTED] > > > > > > Sent: Friday, September 14, 2007 3:34 PM > > > > > > To: [email protected] > > > > > > Subject: [Trinidad] tr:inputDate problem > > > > > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > > > > > > > I'm trying to use the Trinidad inputDate component and I'm > > getting an > > > > > > > > > > > > odd problem with the date picker. > > > > > > > > > > > > > > > > > > > > > > > > Whenever I select a date from it, it returns one day earlier > > than that > > > > > > > > > > > > chosen. This normally happens every time I use it but > > occasionally > > > > > only > > > > > > > > > > > > happens on the second and subsequent picks ( i.e. the first > > returns the > > > > > > > > > > > > correct result). > > > > > > > > > > > > > > > > > > > > > > > > I'm relatively new to Trinidad so I'm just wondering whether > > anybody > > > > > has > > > > > > > > > > > > come across this issue before? > > > > > > > > > > > > > > > > > > > > > > > > For info, I'm using Trinidad 1.0.2 with MyFaces 1.1.5 and > > Facelets > > > > > > > > > > > > 1.1.12. > > > > > > > > > > > > > > > > > > -------------------------------------------------------- > > > > > > > > > > NOTICE > > > > > > > > > > This message and any files transmitted with it is intended for the > > > addressee only and may contain information that is confidential or > > > privileged. Unauthorised use is strictly prohibited. If you are not > > the > > > addressee, you should not read, copy, disclose or otherwise use this > > > message, except for the purpose of delivery to the addressee. > > > > > > > > > > Any views or opinions expressed within this e-mail are those of > > the > > > author and do not necessarily represent those of Coventry University. > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Matthias Wessendorf > > > > further stuff: > > blog: http://matthiaswessendorf.wordpress.com/ > > mail: matzew-at-apache-dot-org > > > >

