ソースを参照

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