go-gorm / go-gorm/postgres

TimeZone is not work

Open
#199 6 comments 2 reactions 1 assignee Claimed by @jinzhu View on GitHub
Dominant language
Go
Stars
297
Forks
155
Avg merge
27m
Merged PRs (30d)
2

Description

## Description
I use 'TimeZone=Asia/Shanghai' to create DSN.
![image](https://github.com/go-gorm/postgres/assets/78415121/5fcc0993-891d-4363-8b47-0ce9e3dbcd6a)

when v1.3.1 it‘s ok.
but when I update to v1.5.0 or v1.5.2 it's not work.
![image](https://github.com/go-gorm/postgres/assets/78415121/4998a156-134d-40c7-8a6f-459cfe8ddd97)

![image](https://github.com/go-gorm/postgres/assets/78415121/928381c3-7d86-4c5b-ba44-85a0e8c820fe)
The log is ok
![image](https://github.com/go-gorm/postgres/assets/78415121/f71fbdac-a878-4a73-9a91-c855278ff8d5)
But the database saved time is less 8 hours.
![image](https://github.com/go-gorm/postgres/assets/78415121/268649bc-c222-498d-868a-b7c4a8aece9f)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.