go-admin icon indicating copy to clipboard operation
go-admin copied to clipboard

[Question] How to implement timestamp with timezone properly?

Open msmaromi opened this issue 5 years ago • 2 comments

Description

I implement this library with gorm. I think by default gorm implements timestamp with timezone. I don't what I missed, I just setup default configuration of goadmin. But when I save the data with timestamp, the error occurs from postgres. I guess form in goadmin doesn't sending timezone for date. Any clue guys?

msmaromi avatar Aug 29 '20 14:08 msmaromi

@msmaromi You can set the configuration item sql_log on in the configuration page of the website. And check the SQL log to see which SQL statement is executed.

chenhg5 avatar Aug 31 '20 07:08 chenhg5

@chenhg5 thanks for the clue

msmaromi avatar Sep 06 '20 22:09 msmaromi