Commit cf14b66
committed
fix: off-by-one in timestamp parsing
Timestamps without dates would infer the correct date based on the local
time. This can lead to bugs where the current local date is different
than the date in the timezone of the original value. Fix this by using
time.Now().In() to adjust the timezone.1 parent ac40eb5 commit cf14b66
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments