From 501adb6e3ca82062efdf36270aa79f53981483d4 Mon Sep 17 00:00:00 2001 From: xnappo Date: Sun, 3 May 2015 18:04:24 -0500 Subject: [PATCH] Fix up date added --- resources/lib/WriteKodiDB.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/WriteKodiDB.py b/resources/lib/WriteKodiDB.py index 1da2e140..467d52c8 100644 --- a/resources/lib/WriteKodiDB.py +++ b/resources/lib/WriteKodiDB.py @@ -108,6 +108,7 @@ class WriteKodiDB(): if MBitem.get("DateCreated") != None: dateadded = MBitem["DateCreated"].replace("T"," ") dateadded = dateadded.replace(".0000000Z","") + dateadded = dateadded.split(".")[0] else: dateadded = None @@ -251,6 +252,7 @@ class WriteKodiDB(): if MBitem.get("DateCreated") != None: dateadded = MBitem["DateCreated"].replace("T"," ") dateadded = dateadded.replace(".0000000Z","") + dateadded = dateadded.split(".")[0] else: dateadded = None @@ -382,6 +384,7 @@ class WriteKodiDB(): if MBitem.get("DateCreated") != None: dateadded = MBitem["DateCreated"].replace("T"," ") dateadded = dateadded.replace(".0000000Z","") + dateadded = dateadded.split(".")[0] else: dateadded = None