Skip to content

Fix comparison of fixture timestamps across different timezones

João Pereira requested to merge db-fix-timestamp-match into database

Problem

This is a followup from !164 (merged). We changed the database timestamp columns to timestamp with time zone but we forgot to update the timestamps used in the fixtures. As a result, tests may fail (depending on the host timezone) when comparing database objects and fixtures.

Solution

Add a +00 suffix to the created_at and updated_at timestamps of fixtures.

Related to &2313 (closed).

Edited by João Pereira

Merge request reports