From 283595fdd41e393cd5d332a7f901078fb799e8a0 Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Fri, 19 May 2017 20:01:37 +0200
Subject: [PATCH] fixed datetime wraper for sqlite, closes #45

---
 db.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db.py b/db.py
index 9ca7d77..a4cac84 100644
--- a/db.py
+++ b/db.py
@@ -13,7 +13,7 @@ if config['DB_ENGINE'] == 'sqlite':
 			hours, minutes, seconds = map(int, timepart_full[0].split(b":"))
 			val = datetime(year, month, day, hours, minutes, seconds, 0)
 		except ValueError:
-			val = None
+			val = datetime.fromtimestamp(0)
 		return val
 
 	sqlite3.register_converter('datetime', convert_timestamp)
-- 
GitLab