4 ms·
> Also, I'd prefer the log specify the time zone it thinks it's in, rather than just convert to UTC automatically. But my computer thinks it's clock is in UTC,
by eru 14y ago
> Also, I'd prefer the log specify the time zone it thinks it's in, rather than just convert to UTC automatically.
But my computer thinks it's clock is in UTC, and it only converts to a timezone for human readable dates.
- pacaro 14y agoThis. UTC is not only unambiguous, but on some systems measurably faster to capture. My experience has taught me to work in UTC everywhere possible, local time is typically only relevant for direct human interaction.
- cluda01 14y agoA caveat here as well is you also need to make sure your various clocks in the data center are synched. This is one of those common but overlooked scenarios which lead to hilarious discussions about latency when really there was just a clock synch problem. Additionally the fallacies of distributed computing come into play here (namely, transport cost is 0) so you need to take extra care when looking at measurements across different systems and machines. Even machines in the same data center. The pipe that you are communicating across could be oversubscribed for example.
- eru 14y agoYes. But you get all those problems plus more, if you convert to local time first.