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

gtime tool formatting bug #2803

Closed
openthe88 opened this issue Jul 26, 2023 · 1 comment
Closed

gtime tool formatting bug #2803

openthe88 opened this issue Jul 26, 2023 · 1 comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version.

Comments

@openthe88
Copy link

gtime工具无法格式化 年-月, 报空指针错误, 运行代码如下

fmt.Printf(打印年-月:%s, gtime.Now().LayoutTo(2006-01))

@Issues-translate-bot Issues-translate-bot changed the title gtime工具格式化BUG gtime tool formatting bug Jul 26, 2023
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The gtime tool cannot format the year-month, and reports a null pointer error. The running code is as follows

fmt.Printf(print year-month: %s, gtime.Now().LayoutTo(2006-01))

@houseme houseme added the bug It is confirmed a bug, but don't worry, we'll handle it. label Jul 26, 2023
gqcn added a commit that referenced this issue Jul 26, 2023
@gqcn gqcn added the done This issue is done, which may be release in next version. label Jul 26, 2023
@gqcn gqcn closed this as completed Jul 26, 2023
gqcn added a commit that referenced this issue Aug 1, 2023
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. done This issue is done, which may be release in next version.
Projects
None yet
Development

No branches or pull requests

4 participants