Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 18464 invoked from network); 7 Dec 2009 20:41:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Dec 2009 20:41:49 -0000 Received: (qmail 3440 invoked by uid 500); 7 Dec 2009 20:41:49 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 3356 invoked by uid 500); 7 Dec 2009 20:41:49 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 3348 invoked by uid 99); 7 Dec 2009 20:41:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2009 20:41:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2009 20:41:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 56B5E29A0018 for ; Mon, 7 Dec 2009 12:41:18 -0800 (PST) Message-ID: <19387638.1260218478351.JavaMail.jira@brutus> Date: Mon, 7 Dec 2009 20:41:18 +0000 (UTC) From: "Mathias Walter (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Updated: (TRINIDAD-1384) Timezones - date picker popup shows a day before In-Reply-To: <531567103.1233232261128.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TRINIDAD-1384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mathias Walter updated TRINIDAD-1384: ------------------------------------- Status: Patch Available (was: Open) > Timezones - date picker popup shows a day before > ------------------------------------------------ > > Key: TRINIDAD-1384 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1384 > Project: MyFaces Trinidad > Issue Type: Bug > Components: Components > Affects Versions: 1.2.10-core, 1.0.10-core > Environment: Server with timezone set to US Eastern Time (GMT-5), client browser on a machine with timezone set to > Central European Time (GMT+1) > Reporter: Denis Krukovsky > Priority: Minor > Attachments: DateField.patch > > > Steps to reproduce: > - run a server with timezone set to US Eastern Time (GMT-5). > - Create a page with Trinidad input date and date picker popup. > - Query the page from a browser on a machine with timezone set to Central European Time (GMT+1). > - Enter some date into input date field. > - Click on datepicker icon. > - Observe that date rendered as selected in datepicker popup is 1 day before the date entered into inputdate field. > This behavior gets fixed when we edit trinidad-config.xml and include Etc/GMT-5 (server timezone) there. Unfortunately trinidad-config modification sometimes is not an option because servers and timezones will change. I tried to supply inputDate component with custom converter which returns server timezone from getTimeZone() and getFormattingTimeZone(...) which doesn't help. > I also noted that in both cases - (1) no modification to trinidad-config and the bug is there, and (2) trinidad-config modified and bug gets fixed - the Trinidad date picker popup is being requested with equal request string containing something like /app/__ADFv__.jsf?_afPfm=-79d68df7&_t=cd&value=1231891200000&loc=en-US&enc=UTF-8, i. e. the value parameter is same for both cases but datepicker gets rendered differently. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.