rabin před 8 roky
rodič
revize
399a63b766
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)))