[ http://jira.magnolia.info/browse/MAGNOLIA-597?page=comments#action_11551 ]
Thomas Duffey commented on MAGNOLIA-597: ---------------------------------------- Removing line 562 from the aforementioned comment seems to be helping. The date remains consistent both in the paragraph output and the edit control. However, I see a need for more flexible time zone settings, especially when the server's time zone is not the same as the user's time zone. I recommend adding a time zone attribute to users to specify that user's local time zone, and then making date controls smart enough to convert input timestamps from the user's time zone to the server's time zone. Another approach worth considering is to store dates in GMT, but then you have to figure out why the values are shifting when output. I suspect it's because the output date formatter needs to know the time zone of the input date. I actually think this is the best solution, but it's also a little more work than just throwing out line 562. > Date control constantly adjusting for time zone > ----------------------------------------------- > > Key: MAGNOLIA-597 > URL: http://jira.magnolia.info/browse/MAGNOLIA-597 > Project: magnolia wcm > Type: Bug > Versions: 2.1.3 > Environment: Various Linux test environments plus whatever the official > Magnolia demo is running on > Reporter: Thomas Duffey > Assignee: Philipp Bracher > > Original Estimate: 1 day > Remaining: 1 day > > Date control values are being adjusted by the server in very strange ways. > First, when you add a value to a date control and then view it on the page, > the date/time shows up as if the value you entered was in GMT and the server > adjusts for the local time zone. Second, when you go back in to edit the > value the same thing happens. This is easily reproduced on the official demo > by creating a page with the developer showroom template and then playing > around with a date paragraph. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------