project8 / dripline-go

Golang implementation of the Dripline framework
http://www.project8.org/dripline
Other
0 stars 0 forks source link

Fixing time format #2

Closed wcpettus closed 7 years ago

wcpettus commented 7 years ago

Golang time documentation is confusing, and we are using the wrong time format. When they say:

Format returns a textual representation of the time value formatted according to layout, which defines the format by showing how the reference time, defined to be

  Mon Jan 2 15:04:05 -0700 MST 2006

The correct format is const TimeFormat = "2006-01-02T15:04:05Z". The old version resulted in every timestamp being fixed at 22h (with date, min, and sec all correct).

Tested on claude and zeppelin with diopsid.

nsoblath commented 7 years ago

Looks good