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

time.ParseInLocation day out of range #40413

Closed
Wang-Jun-Chao opened this issue Jul 26, 2020 · 0 comments
Closed

time.ParseInLocation day out of range #40413

Wang-Jun-Chao opened this issue Jul 26, 2020 · 0 comments

Comments

@Wang-Jun-Chao
Copy link

@Wang-Jun-Chao Wang-Jun-Chao commented Jul 26, 2020

I want to parse string to time.Time
so, I use time.ParseInLocation :

start, err := time.ParseInLocation("2006-01-02 15:04:05", "2000-01-01 00:00:00",time.Local)

then I got an error : parse time error: parsing time "2000-01-01 00:00:00": day out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.