What is the data-type for this date type in the postgres?
2020-01-04T16:25:25.000+05:30
if I use with date-time with time zone it will only store 2020-01-04T16:25:25
Can i get some update on this?
I faced this issue once. What I understood at that time, PostgreSQL is defaulted to UTC. Thats why you will always see +00, and not +5.30. To see that, first you have to set the data type as timestamptz ( time stamp with time zone ) , second - you have to set the timeZone. like SET TIMEZONE='Asia/Kolkata' , something like that.
or else, even though you do:
select TIMESTAMP WITH TIME ZONE '2004-10-19 10:23:54+02' AT TIME ZONE 'IST';
you will get to see only up to 54.
timestamptz type is UTC. timestamp is not. Also you don't have to SET TIMEZONE, Postgres will pick up the one set for your server. Especially in this case as the timestamp has the offset present and setting the TIMEZONE is redundant.
timestampzto store in database. You can refer this for better understanding Click Herecreate table t (the_column timestamptz);