Procházet zdrojové kódy

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

Foppe Hemminga před 6 roky
rodič
revize
f7d4dbeda0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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