summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-04-30 19:04:59 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-04-30 19:04:59 +0200
commitf7331a5e9ae18671a751c1829d63c03c86fca045 (patch)
treecb24d29b2be3fee0572807667a8253160f47d1a4
parentMerge branch 'bolt' of gitspread:sfive into bolt (diff)
force utc timestamps
-rw-r--r--src/hub/src/spreadspace.org/sfive/s5cvt.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hub/src/spreadspace.org/sfive/s5cvt.go b/src/hub/src/spreadspace.org/sfive/s5cvt.go
index 415cd3f..26a7c83 100644
--- a/src/hub/src/spreadspace.org/sfive/s5cvt.go
+++ b/src/hub/src/spreadspace.org/sfive/s5cvt.go
@@ -111,5 +111,6 @@ func NewStatelessEncoder() Encoder {
func (pe *StatelessEncoder) Encode(data DataUpdateFull) (res []byte, err error) {
data.Version = ProtocolVersion
+ data.StartTime = data.StartTime.UTC()
return json.Marshal(data)
}