Skip to content

Commit

Permalink
Update Konstanz.py
Browse files Browse the repository at this point in the history
using utc_now()
  • Loading branch information
AugustQu authored and jklmnn committed May 16, 2019
1 parent 911c1b6 commit d7f3966
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions park_api/cities/Konstanz.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from bs4 import BeautifulSoup
from park_api.util import convert_date
from park_api.util import convert_date, utc_now
from park_api.geodata import GeoData
import datetime

Expand All @@ -12,10 +12,8 @@ def parse_html(html):
# last update time (UTC)
# Konstanz does not support the last_updated yet. I hope they will inform me when it's added
# as the data seems accurate I will return the current time and date
now = datetime.datetime.now()

data = {
"last_updated": now.strftime("%d-%m-%Y %H:%M"),
"last_updated": utc_now(),
"lots": []
}

Expand Down

0 comments on commit d7f3966

Please sign in to comment.