Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1C559234 for ; Mon, 5 Mar 2012 13:56:21 +0000 (UTC) Received: (qmail 30113 invoked by uid 500); 5 Mar 2012 13:56:21 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 30070 invoked by uid 500); 5 Mar 2012 13:56:21 -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 30057 invoked by uid 99); 5 Mar 2012 13:56:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 13:56:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 13:56:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0FA3192AD for ; Mon, 5 Mar 2012 13:55:58 +0000 (UTC) Date: Mon, 5 Mar 2012 13:55:58 +0000 (UTC) From: "Reshmi Choudhury (Commented) (JIRA)" To: dev@myfaces.apache.org Message-ID: <1863347841.22378.1330955758065.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (TRINIDAD-1384) Timezones - date picker popup shows a day before 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:comment-tabpanel&focusedCommentId=13222352#comment-13222352 ] Reshmi Choudhury commented on TRINIDAD-1384: -------------------------------------------- Hi Matthias, I have tried the suggested fix. But still I am facing the same issue. Could you please help me out to fix this issue. Thanks in Advance. > 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. 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