Skip to content
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

Initialize framework with UTC time always to prevent timezone issues. #66

Open
dipeshdulal opened this issue Apr 12, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@dipeshdulal
Copy link
Member

dipeshdulal commented Apr 12, 2022

Ask @symetryn about changes to be done in detail.

Data stored in the database will be stored in UTC Time. In the front displaying will be done using the device's locale.

@paudelgaurav
Copy link
Member

paudelgaurav commented Apr 29, 2024

@dipeshdulal

viper.SetDefault("TIMEZONE", "UTC")

loc, _ := time.LoadLocation(env.TimeZone)

"%s:%s@unix(/cloudsql/%s)/?charset=utf8mb4&parseTime=True&loc=Local",

UTC is set as default in both database and go runtime.
I think we can close this issue.

@paudelgaurav paudelgaurav added the enhancement New feature or request label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants