commit 7cea5ae
Hubert Hirtz
·
2020-10-19 11:59:38 +0000 UTC
parent 7b7b063
Fix duplicate timestamps Caused by difference between timezones (lines initialized with time.Now() are set to local timezone while lines initialized with message time tag are set to UTC). Closes #43
1 files changed,
+1,
-0
+1,
-0
1@@ -315,6 +315,7 @@ func (bs *BufferList) AddLine(title string, highlight bool, line Line) {
2 b := &bs.list[idx]
3 n := len(b.lines)
4 line.Body = strings.TrimRight(line.Body, "\t ")
5+ line.At = line.At.UTC()
6
7 if line.Mergeable && n != 0 && b.lines[n-1].Mergeable {
8 l := &b.lines[n-1]