summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2016-05-21 19:17:24 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2016-05-21 19:17:24 +0200
commitfbad68874cfbf7a2a6fb1a773d9d0038f5853794 (patch)
tree09833a98df40fea161b6200386a2f33de4bb80e6
parentotverio2015: implement proper glucose unit identification. (diff)
downloadglucometerutils-fbad68874cfbf7a2a6fb1a773d9d0038f5853794.tar
glucometerutils-fbad68874cfbf7a2a6fb1a773d9d0038f5853794.tar.gz
glucometerutils-fbad68874cfbf7a2a6fb1a773d9d0038f5853794.tar.bz2
glucometerutils-fbad68874cfbf7a2a6fb1a773d9d0038f5853794.tar.lz
glucometerutils-fbad68874cfbf7a2a6fb1a773d9d0038f5853794.tar.xz
glucometerutils-fbad68874cfbf7a2a6fb1a773d9d0038f5853794.tar.zst
glucometerutils-fbad68874cfbf7a2a6fb1a773d9d0038f5853794.zip
-rw-r--r--glucometerutils/drivers/otverio2015.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glucometerutils/drivers/otverio2015.py b/glucometerutils/drivers/otverio2015.py
index 4093727..e794e92 100644
--- a/glucometerutils/drivers/otverio2015.py
+++ b/glucometerutils/drivers/otverio2015.py
@@ -95,7 +95,7 @@ def _encode_message(cmd):
_REGISTER_SIZE - 2 - len(message))
def _convert_timestamp(timestamp):
- return datetime.datetime.fromtimestamp(timestamp + _EPOCH_BASE)
+ return datetime.datetime.utcfromtimestamp(timestamp + _EPOCH_BASE)
class Device(object):
def __init__(self, device):