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

os/gtime: issue title #3734

Open
macnie opened this issue Aug 16, 2024 · 1 comment
Open

os/gtime: issue title #3734

macnie opened this issue Aug 16, 2024 · 1 comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@macnie
Copy link

macnie commented Aug 16, 2024

Go version

go 1.20.7

GoFrame version

V 2.7.2

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

代码为:
dao.User.Ctx(ctx).Update(do.User{registerAt:gtime.NewFromStr("1900-01-01 00:00:00")})
控制台的SQL没有问题。但数据库实际插入为:
1900-01-01 00:05:43
很奇怪。

What did you see happen?

数据库插入应该为:1900-01-01 00:00:00 , 实际情况是:1900-01-01 00:05:43

What did you expect to see?

找不到任何问题。

@macnie macnie added the bug It is confirmed a bug, but don't worry, we'll handle it. label Aug 16, 2024
@wlynxg
Copy link
Contributor

wlynxg commented Aug 16, 2024

Could you provide a minimal demo that reproduces the bug?
And explain the table structure and database version, which will help us reproduce and fix the bug.
Thank you for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

No branches or pull requests

2 participants