: Alfonso ZAFON
for having the Timestamp “but locally”, having in account summer time
I know that non local time stamps looks strange. In Germany -1 or -2 hours.
Especially strange that log entries made at 01:00 have the date from the previous day.
Till I had the need of a real log. An external source provide a data feed and I needed to store it. It was a private project, logging power consumption. Everything seemed to work great, then I suddenly had strange results.
Why? Summer time. Suddenly the day had 25 hours, so the statistic was strange, a visible increase in consumption.
Now I finally understood the idea. Logging events and get the same timestamp twice from data in fact 60 minutes difference, makes the whole log useless.
Source of that feature was a feature request from the forum, read here:
As you can see, the demand was to get a correct logging time, including ms, in GMT zone, formated as string.