Re: Retrieving current date

2025-06-20 Thread sivapostg...@yahoo.com
Thanks all, I just changed the timezone setting in postgresql.conf file.  That resolved this issue. On Thursday 19 June, 2025 at 07:41:16 pm IST, Adrian Klaver wrote: On 6/18/25 23:23, sivapostg...@yahoo.com wrote: > Hello, > May be a very basic question.  We all here are new to Linux

Re: Retrieving current date

2025-06-19 Thread Adrian Klaver
On 6/18/25 23:23, sivapostg...@yahoo.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 U

Re: Retrieving current date

2025-06-19 Thread Ron Johnson
On Thu, Jun 19, 2025 at 2:23 AM sivapostg...@yahoo.com < sivapostg...@yahoo.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 >

Re: Retrieving current date

2025-06-18 Thread David G. Johnston
On Wednesday, June 18, 2025, sivapostg...@yahoo.com wrote: > > > How to change the setting(s), if any, to retrieve the current date and > time in IST? > https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-TIMEZONES Not totally sure if that will or won’t impact how pgAdmin be

Re: Retrieving current date

2025-06-18 Thread sivapostg...@yahoo.com
Hello,May be a very basic question.  We all here are new to Linux / PostgreSQL Ubuntu Server 22.04PostgreSQL 15PgAdmin4 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 chan