From 2a2889020a1d4a822c77d4c6b77d4d8884b8691a Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Mon, 20 Feb 2023 17:04:14 -0500 Subject: [PATCH] nix: fix PGTZ on postgrest-with-* commands --- nix/tools/withTools.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/tools/withTools.nix b/nix/tools/withTools.nix index 2e286620e..a52fa4807 100644 --- a/nix/tools/withTools.nix +++ b/nix/tools/withTools.nix @@ -54,6 +54,7 @@ let export PGUSER export PGDATABASE export PGRST_DB_SCHEMAS + export PGTZ HBA_FILE="$tmpdir/pg_hba.conf" echo "local $PGDATABASE some_protected_user password" > "$HBA_FILE" @@ -67,7 +68,7 @@ let log "Starting the database cluster..." # Instead of listening on a local port, we will listen on a unix domain socket. - pg_ctl -l "$tmpdir/db.log" -w start -o "-F -c listen_addresses=\"\" -c hba_file=$HBA_FILE -k $PGHOST -c log_statement=\"all\" -c timezone=utc" \ + pg_ctl -l "$tmpdir/db.log" -w start -o "-F -c listen_addresses=\"\" -c hba_file=$HBA_FILE -k $PGHOST -c log_statement=\"all\" " \ >> "$setuplog" # shellcheck disable=SC2317