From 99566a1573ff100ab8f2ea3a760c3071e7ad8c92 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20K=C3=A1cha?= <ph@cesnet.cz>
Date: Fri, 6 Apr 2018 15:14:35 +0200
Subject: [PATCH] Fix unix timestamp conversion - we always work with UTC, not
 localtime

---
 idea/__init__.py | 2 +-
 idea/lite.py     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/idea/__init__.py b/idea/__init__.py
index f5ba082..0c0f9a7 100644
--- a/idea/__init__.py
+++ b/idea/__init__.py
@@ -4,5 +4,5 @@
 # Copyright (c) since 2016, CESNET, z. s. p. o.
 # Use of this source is governed by an ISC license, see LICENSE file.
 
-__version__ = '0.1.12'
+__version__ = '0.1.13'
 __author__ = 'Pavel Kácha <pavel.kacha@cesnet.cz>'
diff --git a/idea/lite.py b/idea/lite.py
index 65204c3..c4f9a8f 100644
--- a/idea/lite.py
+++ b/idea/lite.py
@@ -58,7 +58,7 @@ def Timestamp(t):
         return t
     try:
         # Try numeric type
-        return datetime.datetime.fromtimestamp(float(t))
+        return datetime.datetime.utcfromtimestamp(float(t))
     except (TypeError, ValueError):
         pass
     # Try RFC3339 string
-- 
GitLab