Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1104

FastDateParserTest.testParses fails in TimeZone America/Sao_Paulo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 3.4
    • lang.time.*
    • None

    Description

      Build works fine with Java 7 and Maven 3.2

      Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T15:29:23-02:00)
      Maven home: /opt/apache-maven-3.2.5
      Java version: 1.7.0_76, vendor: Oracle Corporation
      Java home: /usr/lib/jvm/java-7-oracle/jre
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux", version: "3.16.0-33-generic", arch: "amd64", family: "unix"

      The following test failed though:

      org.apache.commons.lang3.time.FastDateFormat_ParserTest:
      java.lang.AssertionError: ms_MY Sat Feb 10 01:53:32 BRT 1900 GGGG/yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE/ZZZZ
      America/New_York expected:<Sat Feb 10 01:53:32 BRT 1900> but was:<Sat Feb 10 01:53:04
      BRT 1900>

      Build fails with Java 8 and Maven 3.2. Same test fails.

      Failed tests:
      FastDateFormat_ParserTest>FastDateParserTest.testParses:250->FastDateParserTest.validateSdfFormatFdpParseEquality:227
      Sat Feb 10 01:53:32 BRT 1900 GGGG/yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE/ZZZZ America/New_York
      expected:<Sat Feb 10 01:53:32 BRT 1900> but was:<Sat Feb 10 01:53:04 BRT 1900>

      My time zone is set to America/Sao_Paulo, GMT -3,
      and I suspect that that failing test is in someway related to my time zone.

      Attachments

        Activity

          People

            chonton Charles Honton
            chonton Charles Honton
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: