I am trying to parse a time string which is transported on the wire as JSON. In the below code, I am just experimenting the time parsing as part of that:
currentTime := time.Now().String()
//currentTime has the time
t1, _ := time.Parse(time.RFC3339, currentTime)
fmt.Println(t1.String())
The last but one line mangles the time and produces the output: 0001-01-01 00:00:00 +0000 UTC
See this GoPlayground:https://play.golang.org/p/Q_G_qYcnaHP
What am I missing?