rabin 7 éve
szülő
commit
399a63b766
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      core.py

+ 1 - 1
core.py

@@ -179,7 +179,7 @@ class Demeter(object):
 
 	@staticmethod
 	def mktime(value, string='%Y-%m-%d %H:%M:%S'):
-		if ' ' in string and ' ' not in value:
+		if ' ' in string and ' ' not in value and value:
 			value = value + ' 00:00:00'
 		return int(time.mktime(time.strptime(value,string)))