aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-04-03 16:04:56 +0200
committerDennis Eriksen <d@ennis.no>2023-04-03 16:04:56 +0200
commitdb8c7f9c4fef8bfb2722970233937696e3837c5a (patch)
tree1e474d56c30a16702f50321328eca7af5b5571a8 /scripts
parentforgot to change loglevel (diff)
downloadenergyscripts-db8c7f9c4fef8bfb2722970233937696e3837c5a.tar.gz
Use UTC!
Diffstat (limited to 'scripts')
-rw-r--r--scripts/common/__init__.py2
1 files changed, 1 insertions, 1 deletions
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)