diff --git a/servicelog/kontext015/output.go b/servicelog/kontext015/output.go index 1cb4329..618f2a2 100644 --- a/servicelog/kontext015/output.go +++ b/servicelog/kontext015/output.go @@ -91,8 +91,9 @@ type OutputRecord struct { // SetTime is defined for other treq variants // so they can all share the same output rec. type func (cnkr *OutputRecord) SetTime(t time.Time, tzShiftMin int) { - cnkr.Datetime = t.Add(time.Minute * time.Duration(tzShiftMin)).Format(time.RFC3339) - cnkr.time = t + t2 := t.Add(time.Minute * time.Duration(tzShiftMin)) + cnkr.Datetime = t2.Format(time.RFC3339) + cnkr.time = t2 } // ToJSON converts self to JSON string diff --git a/servicelog/treq/output.go b/servicelog/treq/output.go index 6965576..dad6e6d 100644 --- a/servicelog/treq/output.go +++ b/servicelog/treq/output.go @@ -53,8 +53,9 @@ type OutputRecord struct { // SetTime is defined for other treq variants // so they can all share the same output rec. type func (r *OutputRecord) SetTime(t time.Time, tzShiftMin int) { - r.Datetime = t.Add(time.Minute * time.Duration(tzShiftMin)).Format(time.RFC3339) - r.time = t + t2 := t.Add(time.Minute * time.Duration(tzShiftMin)) + r.Datetime = t2.Format(time.RFC3339) + r.time = t2 } // SetLocation sets all the location related properties