here is an example how is the date looking from the data I'd like to parse:
2017-10-20 13:32:26,890
and my format look like this:
2006-01-02 15:04:05,000
now the weird part:
date := "2017-10-20 13:32:26,890"
_, err := time.Parse("2006-01-02 15:04:05,000", date)
if err != nil {
panic(err)
}
if I run this I am getting this error:
panic: parsing time "2017-10-20 13:32:26,890" as "2006-01-02 15:04:05,000": cannot parse "890" as ",000"
If I change the comma to a single dot in both the date and the format it's working properly. I can replace the comma with regexp, but why is this happening?