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

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

@golang golang locked and limited conversation to collaborators Jul 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants