Skip to content

Commit

Permalink
fix: Serialize timestamp in UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Jun 13, 2019
1 parent 4ec674b commit 5257b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ func (o *timestampOption) Class() string {
}

func (o *timestampOption) MarshalJSON() ([]byte, error) {
return json.Marshal(o.timestamp.Format("2006-01-02T15:04:05"))
return json.Marshal(o.timestamp.UTC().Format("2006-01-02T15:04:05"))
}

0 comments on commit 5257b45

Please sign in to comment.