Changing displayed time zone in RAISE NOTICE output? - Mailing list pgsql-general

From Ron
Subject Changing displayed time zone in RAISE NOTICE output?
Date
Msg-id 6b5f2616-f44a-10c5-974d-fc19cc493473@gmail.com
Whole thread Raw
Responses Re: Changing displayed time zone in RAISE NOTICE output?
List pgsql-general
How do I get clock_timestamp() to display the time in a different time zone?

This is America/Chicago, but I'd like to display it in a different TZ.

psql (12.12 (Ubuntu 12.12-1.pgdg18.04+1))
postgres=# DO $$
postgres$# BEGIN
postgres$# RAISE NOTICE '%', clock_timestamp();
postgres$# END$$;
NOTICE:  2023-01-11 14:52:34.408225-06
DO

-- 
Born in Arizona, moved to Babylonia.



pgsql-general by date:

Previous
From: Michel Pelletier
Date:
Subject: Disabling triggers on tables dumped with pg_extension_config_dump()
Next
From: Adrian Klaver
Date:
Subject: Re: Changing displayed time zone in RAISE NOTICE output?