diff --git a/python/ecl/util/util/ctime.py b/python/ecl/util/util/ctime.py index 1500c3247..0b7beaf9b 100644 --- a/python/ecl/util/util/ctime.py +++ b/python/ecl/util/util/ctime.py @@ -50,7 +50,7 @@ def date(self): return datetime.date(*self.time()[0:3]) def datetime(self): - return datetime.datetime(*self.time()[0:6]) + return datetime.datetime.utcfromtimestamp(self.ctime()) def __str__(self): return self.datetime().strftime("%Y-%m-%d %H:%M:%S%z")