News for hackers. Stuff that matters.
Re:Time in Go by dvirsky on Thursday September 10, 2015 @02:40AM (#10196418)
The problem is that the browser sends it in a different format (it's the HTML5 date-time input), 3399 simplified or something like that. So I ended up doing something like:

> formats := []string{ string(time.RFC3339), "2006-01-02T15:04:05.0", "2006-01-02T15:04:05.00", "2006-01-02T15:04:05", "2006-01-02T15:04",}

To make sure I have all cases covered

There are no comments on this comment yet.