node-exporter-textfile-collector-scripts icon indicating copy to clipboard operation
node-exporter-textfile-collector-scripts copied to clipboard

smartmon.py: fix timestamp in smartctl_run metric

Open equinox0815 opened this issue 2 years ago • 0 comments

The function datetime.utcnow() returns naive instances which are assumed to use the current locale when converted to timestamps using datetime.timestamp(). As a result the timezone offset is added twice leading to wrong timestamps.

equinox0815 avatar Oct 15 '21 19:10 equinox0815