diff options
author | Dennis Eriksen <d@ennis.no> | 2023-04-03 16:04:56 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-04-03 16:04:56 +0200 |
commit | db8c7f9c4fef8bfb2722970233937696e3837c5a (patch) | |
tree | 1e474d56c30a16702f50321328eca7af5b5571a8 /scripts | |
parent | forgot to change loglevel (diff) | |
download | energyscripts-db8c7f9c4fef8bfb2722970233937696e3837c5a.tar.gz |
Use UTC!
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/common/__init__.py | 2 |
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) |