Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-11979

CMF tests and parsing must be independent of the timezone

    XMLWordPrintable

    Details

      Description

      Some tests are failing with errors such as "expected:<Thu Feb 25 1[5:14:35 CET] 2010> but was:<Thu Feb 25 1[4:14:35 UTC] 2010>".
      Corresponding code to the above sample is:

      assertEquals("Thu Feb 25 15:14:35 CET 2010", receptionDate.getTime().toString());

      Tests must not compare strings for date checks. More globally, the tests must be independent of the timezone where they are ran.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: