When the site's timezone is not UTC, the "Timezone & Granularity' test fails. The following scenario happens:

For the test when tz_handling = 'utc':

Current situation:

The time is entered as "10:30", because we're in utc handling, this is interpreted correctly as a UTC time. When displaying, the time is displayed in the site's timezone, which is not the time expected by the test.

Proposed solution:

Explicitly set a 'site timezone' when starting the test, and change the test check the date being displayed in this timezone.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Stevel created an issue. See original summary.

Stevel’s picture

DamienMcKenna’s picture

Why not merge this back into #2646646: Tests are broken on current 7.x-2.x branch so all tests are fixed in one go?

DamienMcKenna’s picture

Status: Needs review » Closed (duplicate)

Lets just merge back into #2646646: Tests are broken on current 7.x-2.x branch, we don't need to split this up.