You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在 这种情况下,连接数据库之后执行 SHOW TIMEZONE。查询出来当前时区有一定的概率会出现Asia%2FShanghai
PS C:\coder\Go\src\utils go build .\dsn.go;.\dsn.exe
postgres://postgres:postgres@127.0.0.1:5432/test?TimeZone=Asia%2FShanghai&search_path=public
Current session timezone: ASIA%2FSHANGHAI
PS C:\coder\Go\src\utils go build .\dsn.go;.\dsn.exe
postgres://postgres:postgres@127.0.0.1:5432/test?TimeZone=Asia%2FShanghai&search_path=public
Current session timezone: ASIA%2FSHANGHAI
PS C:\coder\Go\src\utils go build .\dsn.go;.\dsn.exe
postgres://postgres:postgres@127.0.0.1:5432/test?TimeZone=Asia%2FShanghai&search_path=public
Current session timezone: ASIA%2FSHANGHAI
PS C:\coder\Go\src\utils go build .\dsn.go;.\dsn.exe
postgres://postgres:postgres@127.0.0.1:5432/datestta_house?TimeZone=Asia%2FShanghai&search_path=public
Current session timezone: Asia/Shanghai
The text was updated successfully, but these errors were encountered:
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Postgres数据库中DSN设置timezone和TimeZone可能造成的异常情况
在 这种情况下,连接数据库之后执行
SHOW TIMEZONE
。查询出来当前时区有一定的概率会出现Asia%2FShanghai
The text was updated successfully, but these errors were encountered: