aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)