Re: Retrieving current date

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Retrieving current date
Date: 2025-06-19 13:25:53
Message-ID: CANzqJaCUjceXYCB2F91tSADq6c8rXuJq-MSCAXWuGuJf61_oBQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jun 19, 2025 at 2:23 AM sivapostgres(at)yahoo(dot)com <
sivapostgres(at)yahoo(dot)com> wrote:

> Hello,
> May be a very basic question. We all here are new to Linux / PostgreSQL
>
> Ubuntu Server 22.04
> PostgreSQL 15
> PgAdmin4 6.16
>
> When I run the following query in pg_admin
>
> Select today_now
> From (Select localtimestamp(0) as today_now) a;
>
> I get UTC time and not the IST time, which I expect.
>
> How to change the setting(s), if any, to retrieve the current date and
> time in IST?
>

In addition, see what time zone the Linux server is at:

$ timedatectl | grep zone
Time zone: America/New_York (EDT, -0400)

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2025-06-19 14:10:54 Re: Retrieving current date
Previous Message Dominique Devienne 2025-06-19 13:09:03 Extension disappearing act