GORM Playground Link
I'm having trouble to create a test that is about the playground because the tests that should pass is in the main repo. I made it in the main repo. https://github.com/jsgoupil/gorm/commit/95f580725520d37f146585ceb36c9efc37ced2c3
Description
The ExplainSQL does not display the time zone when displaying a time. The following times,
now := time.Now()
nowInPST := now.In(pst)
nowInEST := now.In(est)
are all equivalent. However, when you display the SQL, they will appear to be different.
What is saved in the database is correct; it's only what is in the ExplainSQL that doesn't work.
I added 2 time zones because one can pass if your computer is in that time zone. I am in PST, so it works, but it will fail with the EST.
sql_test.go:118: Explain SQL #8 expects
create table users (name, age, height, actived, bytes, create_at, update_at, deleted_at, email, role, pass) values ("jinzhu?", 1, 999.990000, true, "12345", "2020-02-23 11:10:10", "2020-02-23 11:10:10", NULL, "w@g.\"com", "admin", "pass"),
but got
create table users (name, age, height, actived, bytes, create_at, update_at, deleted_at, email, role, pass) values ("jinzhu?", 1, 999.990000, true, "12345", "2020-02-23 14:10:10", "2020-02-23 11:10:10", NULL, "w@g.\"com", "admin", "pass")
Comment From: github-actions[bot]
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 ✨
Comment From: jsgoupil
https://github.com/go-gorm/playground/pull/465