Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4604

ibexa/migrations integration tests fail when using different timezone

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.3.0, 3.3.29, 4.4.x-dev
    • Content
    • Ibexa Content

    Description

      Steps

      1. Set in php.ini date.timezone to e.g.: date.timezone = 'Europe/Warsaw'
      2. Run phpunit
      3. See failures in expected vs. actual time strings in about 12 tests
              -'2020-12-11T08:26:43+00:00'
              +'2020-12-11T09:26:43+01:00' 

      Expected result

      Tests pass regardless of local timezone setting.

      Note

      By default the timezone is set to Europe/Berlin and then test don't fail, which is peculiar, since technically this is also CET timezone.

      Designs

        Attachments

          Activity

            People

              pawel.niedzielski@ibexa.co Paweł Niedzielski
              andrew.longosz@ibexa.co Andrew Longosz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: