public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ron Johnson <[email protected]>
To: pgsql-general <[email protected]>
Subject: Re: Retrieving current date
Date: Thu, 19 Jun 2025 09:25:53 -0400
Message-ID: <CANzqJaCUjceXYCB2F91tSADq6c8rXuJq-MSCAXWuGuJf61_oBQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>

On Thu, Jun 19, 2025 at 2:23 AM [email protected] <
[email protected]> 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!


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Retrieving current date
  In-Reply-To: <CANzqJaCUjceXYCB2F91tSADq6c8rXuJq-MSCAXWuGuJf61_oBQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox