commons-issues mailing list archives

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

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

Charles Honton commented on LANG-1315:
--------------------------------------

Please attach a unit test that demonstrates a failure.

> 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
>              Labels: DateParser, FastDateParser, parse
>
> 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