GoAdminGroup / go-admin

A golang framework helps gopher to build a data visualization and admin panel in ten minutes
https://www.go-admin.com
Apache License 2.0
8.19k stars 1.34k forks source link

[Question] How to implement timestamp with timezone properly? #322

Open msmaromi opened 4 years ago

msmaromi commented 4 years ago

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?

chenhg5 commented 4 years ago

@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.

msmaromi commented 4 years ago

@chenhg5 thanks for the clue