mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 17:13:22 +00:00
e86f4d9dfd
Go's time.Time represents time as UTC in its fundamental data type. That said, when using ``time.Unix(...)``, it sets the zone for the time representation to the local. Unfortunately with diagnosis and our tests, it is a PITA to jump between various zones, even though the serialized version remains the same. To keep things easy, all places where times are generated or read are converted into UTC. These conversions are cheap, for ``Time.In`` merely changes a pointer reference in the struct, nothing more. This enables me to diagnose test failures with fixture data very easily. |
||
---|---|---|
.. | ||
indexable | ||
interface.go | ||
protocol_buffer.go |