commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-996) FastDateFormat is case sensitive
Date Fri, 11 Apr 2014 14:19:15 GMT

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

Benedikt Ritter commented on LANG-996:
--------------------------------------

I'd like to have this fixed in 3.4

> FastDateFormat is case sensitive
> --------------------------------
>
>                 Key: LANG-996
>                 URL: https://issues.apache.org/jira/browse/LANG-996
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.time.*
>    Affects Versions: 3.3.2
>            Reporter: David Rees
>             Fix For: Patch Needed, 3.4
>
>
> It seems that FastDateFormat is case sensitive. But it claims to be mostly compatible
with SimpleDateFormat which is not.
> For example, this throws a ParseException:
> FastDateFormat.getInstance("dd-MMM-yyyy").parse("01-jan-2000");
> But these do not:
> SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
> sdf.parse("01-jan-2000");
> DateUtils.parse("01-jan-2000", "dd-MMM-yyyy");



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message