-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TimeZone is not work #199
Comments
@oomxp598
|
@mrcuix 感谢回复,应该是我没有描述清楚,是这样的,我有两个项目,连的同一个数据库(centos7裸机部署),数据库的时区为Asia/Shanghai,两个项目连接数据库的配置完全一样,唯一不同的是,引用的依赖包gorm.io/driver/postgres版本不一样(其中一个项目创建的稍晚,引用的依赖包版本较新),引用旧版本v1.3.1的项目是正常的,引用新版本v1.5.0的项目出现了时区问题,当我将版本回退至v1.3.1时,两个项目的时区都正常了 |
Hi @jinzhu,
And no longer worked with
The value I'm getting from
Is the correct value I set ( |
@moolitayer same problem from me. But if you use I used the following DSN:
|
@oomxp598 我尝试了几个版本,发现从1.4.6开始,pgx的版本从v4升到了v5,之后设置时区就都没用了,1.4.5及以下的版本都没问题 |
Description
I use 'TimeZone=Asia/Shanghai' to create DSN.
when v1.3.1 it‘s ok.
but when I update to v1.5.0 or v1.5.2 it's not work.
The log is ok
But the database saved time is less 8 hours.
The text was updated successfully, but these errors were encountered: