소스 검색

Get the starting date correct (in stead of default 1970-01-01)

Foppe Hemminga 6 년 전
부모
커밋
f7d4dbeda0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      model.py

+ 1 - 1
model.py

@@ -77,5 +77,5 @@ def convert_to_date(weird_string):
     local_timezone = pytz.timezone('Australia/Sydney')
     now = datetime.datetime.now(local_timezone)
     calculated_date = datetime.datetime.strptime(str(now.year) + ' ' + weird_string, "%Y %A %d %b").date()
-    print(calculated_date)
+    # print(calculated_date)
     return calculated_date