void-linux / runit

The init system for Void Linux.
https://voidlinux.org
169 stars 22 forks source link

[svlogd] / localtime timestamps? #24

Closed riddicc closed 1 year ago

riddicc commented 1 year ago

Hi!

Since I do not like UTC time (due to the minutes that are not all the same... details...), I made myself a TAI time zoneinfo file, so that my box is not so affected by those funny minutes... I have true SI seconds (not like Google's smeared time...).

svlogd is somehow a step back, because it uses UTC timestamps or no (human readable) timestamps...

Since the runit dev team is not fond of my idea, they suggested, that it would be u, who i ask, to add the attached patch (after thorough cross checking... i didn't even try to compile it... blush)...

Thx.

Bye.

ltime.patch.txt

classabbyamp commented 1 year ago

i'm not sure what the point of this is. svlogd can already print tai (svlogd -t), and your changes to fmt_ptime2() don't change any functionality (the two sides of the if block are the same).

riddicc commented 1 year ago

@classabbyamp oh... thx... in the first case it should be localtime instead of gmtime... and the TAI of svlogd is not human readable...

riddicc commented 1 year ago

i replaced svlogd/nanoklog/socklog by my own "creation"...