I'm writing a test in Golang which verifies that a journal on disk is properly managed. When I look at the file I see the correct date, but when I look at the date in the test and the date I reload from JSON, they look different:
Timestamp I got with time.Now()
:
2019-08-06 00:17:46.033527441 -0700 PDT m=+2.582718548
Timestamp I reloaded from the JSON:
2019-08-06 00:17:46.033527441 -0700 PDT
If I change the date to UTC()
, it all works as expected (i.e. start with time.Now().UTC()
).
I understand that the location is different, I'm just not too sure what the m=...
parameter stands for and why would it not be present in the date I reloaded from JSON since it is the exact same date.
So... What is that field?