From fbad68874cfbf7a2a6fb1a773d9d0038f5853794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sat, 21 May 2016 18:17:24 +0100 Subject: otverio2015: fix date/time handling, which was broken outside of UTC. --- glucometerutils/drivers/otverio2015.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3