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: fix #3558 time zone issues #3561

Merged
merged 4 commits into from May 10, 2024
Merged

os/gtime: fix #3558 time zone issues #3561

merged 4 commits into from May 10, 2024

Conversation

wln32
Copy link
Member

@wln32 wln32 commented May 5, 2024

1.修复bug,添加测试
2.修复之前的测试

2006-01-02T20:05:06+05:01:01
2006-01-02T14:03:04Z01:01:01
这两种带有时区的时间字符串不是规范的,RFC3339和ISO 8601对于带有时区格式的字符串,规定后面只能是 ±HH:MM 这种的
或者是Z,后面不能跟别的, 等同于±00:00

@wln32 wln32 requested a review from gqcn May 5, 2024 08:10
@wln32 wln32 linked an issue May 5, 2024 that may be closed by this pull request
@wln32 wln32 changed the title os/gtime: fixed #3558 time zone issues os/gtime: fix #3558 time zone issues May 5, 2024
os/gtime/gtime_z_unit_test.go Outdated Show resolved Hide resolved
@gqcn gqcn merged commit 0765741 into gogf:master May 10, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

os/gtime: There is a bug in converting string to gtime.Time
2 participants