From db8c7f9c4fef8bfb2722970233937696e3837c5a Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 3 Apr 2023 16:04:56 +0200 Subject: Use UTC! --- scripts/common/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/common/__init__.py') diff --git a/scripts/common/__init__.py b/scripts/common/__init__.py index d434a4a..f97635b 100644 --- a/scripts/common/__init__.py +++ b/scripts/common/__init__.py @@ -41,7 +41,7 @@ def statein(sensor, value, device_class, unit, **kwargs): values = (value, device_class, unit, - datetime.now(), + datetime.utcnow(), sensor) log.debug('dbi(' + sql + ',' + str(values) + ')') dbi(sql, values, verbose=verbose) -- cgit v1.2.3