commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sudheendra (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1315) FastDateParser parse method parses without considering timezone
Date Wed, 08 Mar 2017 11:26:38 GMT
Sudheendra created LANG-1315:
--------------------------------

             Summary: FastDateParser parse method parses without considering timezone
                 Key: LANG-1315
                 URL: https://issues.apache.org/jira/browse/LANG-1315
             Project: Commons Lang
          Issue Type: Bug
            Reporter: Sudheendra


Using commons-lang3 3.5
FastDateParser parse(String ,ParsePosition ) internally calls calendar.getTime(). This method
created a new Date object which will ignore the timezone and locale. Hence will default to
system TZ and locale.

The parse should happen with respect to the formatter's time zone but that is currently ignored



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message