[ https://issues.apache.org/jira/browse/LANG-1166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov updated LANG-1166: --------------------------------- Fix Version/s: (was: 3.5) > FastDateFormat does not honour 'ZZ' pattern > ------------------------------------------- > > Key: LANG-1166 > URL: https://issues.apache.org/jira/browse/LANG-1166 > Project: Commons Lang > Issue Type: Bug > Components: lang.time.* > Affects Versions: 3.4 > Reporter: Abhishek Gupta > Assignee: Charles Honton > > A date format of "yyyy-MM-dd'T'HH:mm:ss.SSS ZZ" returns > "2015-08-13T11:37:13.203 Z" for UTC timezone in version 3.4. > Same format with version 3.3.2 returns "2015-08-13T11:39:28.452 +00:00" > The code which i am using to test this is as follows: > {code:java} > import org.apache.commons.lang3.time.FastDateFormat; > import java.util.Date; > import java.util.TimeZone; > public class FastDateFormatTest { > private static final String DATE_FORMAT = > "yyyy-MM-dd'T'HH:mm:ss.SSS ZZ"; > private static FastDateFormat fastDateFormat = > FastDateFormat.getInstance(DATE_FORMAT, TimeZone.getTimeZone("UTC")); > public static void main(String[] args) { > System.out.println("fastDateFormat = " + fastDateFormat.format(new > Date())); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)