[ 
https://issues.apache.org/jira/browse/OFBIZ-5608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14993659#comment-14993659
 ] 

Gareth Carter commented on OFBIZ-5608:
--------------------------------------

Patch works.

To test:
- Set timezone to Europe/London
- Modify PartyForms.xml#EditPerson. Add the following to the form:
{code}
        <field name="birthDate" title="My Custom Birth Date">
            <date-time type="date" ignore-time-zone="true" />
        </field>
{code}
- Create a new person with birth date edited
- Change timezone to America/New_York
- Edit person and you should see birthdate is the same value when set in 
Europe/London timezone
- If you change ignore-time-zone = "false" and edit again, the birthdate field 
should contain the original date - 1 day

With the patch as it is, none of the forms with a date only field will have 
ignore-time-zone="true" set, so ofbiz will behave as it does without this 
patch. Would there be any plans to update existing forms? Eg 
PartyForms.xml#EditPerson

> Dates Displaying Incorrectly With Negative Offest Timezones.
> ------------------------------------------------------------
>
>                 Key: OFBIZ-5608
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5608
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 12.04, Release Branch 13.07, Trunk
>            Reporter: Rupert Howell
>            Priority: Minor
>         Attachments: IgnoreTimeZone.patch, ObjectTypeTests.patch, 
> dates.patch, dates_1589040.patch, sqldate_scenarios.png
>
>
> Dates are displaying incorrectly when negative offset (relative to UTC) are 
> applied by the users settings.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to