rabin %!s(int64=8) %!d(string=hai) anos
pai
achega
399a63b766
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)))