[
https://issues.apache.org/jira/browse/OFBIZ-5608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13976826#comment-13976826 ]
Gareth Carter commented on OFBIZ-5608:
--------------------------------------
"A date has a beginning and end. When does the day begin? It depends on which time zone you are referring to. When does the day end? Again, it depends on which time zone you are referring to."
A date/time has a beginning and end, a date only which java.sql.Date represents does not. Looking at the source code, it throws an exception when calling any of the time methods and toString and valueOf only cares about the date. For postgres I know that the jdbc driver returns a java.sql.Date with the time always set to midnight. No matter which timezone with a negative offset you use, the output will always be the previous day when formatting java.util.Date and all subclasses
> 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: SVN trunk, Release Branch 12.04, Release Branch 13.07
> Reporter: Rupert Howell
> Priority: Minor
> Fix For: SVN trunk
>
> Attachments: dates.patch, dates_1589040.patch
>
>
> Dates are displaying incorrectly when negative offset (relative to UTC) are applied by the users settings.
--
This message was sent by Atlassian JIRA
(v6.2#6252)