rabin 8 년 전
부모
커밋
399a63b766
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)))