postgres.git / summary / log / commit / refs

commit    df1bac400fb4877ba9f4bda2a29adaf8b40b4bd3
Author:   Andrew Dunstan <andrew@dunslane.net>
Date:     Wed Apr 29 15:58:15 2026 +0000
First released in: master (reverted before release)
Reverted by: db169985c10f (in 19.0)

    Fix timezone dependence in test_misc/012_ddlutils.pl
    
    The tests introduced in c529ee38b9e are timezone sensitive.
    
    Pin the cluster's timezone to UTC at init time so timestamptz output
    is deterministic regardless of the host's local timezone.


src/test/modules/test_misc/t/012_ddlutils.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/modules/test_misc/t/012_ddlutils.pl b/src/test/modules/test_misc/t/012_ddlutils.pl index b11d4777ccc..a0e21c69fb5 100644 --- a/src/test/modules/test_misc/t/012_ddlutils.pl +++ b/src/test/modules/test_misc/t/012_ddlutils.pl @@ -15,6 +15,9 @@ use Test::More; my $node = PostgreSQL::Test::Cluster->new('main'); $node->init; +# Force UTC so that timestamptz values (e.g. VALID UNTIL) render the same +# way regardless of the host's local timezone. +$node->append_conf('postgresql.conf', "timezone = 'UTC'\n"); $node->start; # Perl helper that strips locale/collation details from DDL output so [parent: c529ee38b9eb]