diff --git a/idea/__init__.py b/idea/__init__.py index f5ba082909d3fd2e278749f74042bd1ddb93d17a..0c0f9a7321afa52f0b1b532c76bb6c950fd103dd 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 65204c3552042be539e56d9cfbad35a8dc24e77a..c4f9a8f357299147ebea2e84c5e08c2aaf751b8e 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