diff --git a/container b/container index c54d0242d..4e20a1256 100755 --- a/container +++ b/container @@ -126,7 +126,6 @@ import tempfile import time import urllib.parse -from dateutil.parser import parse from urllib.request import urlopen URLS = { @@ -781,8 +780,9 @@ def _get_latest_image_timestamp(distribution): url = URLS[distribution] response = urlopen(url[0:url.rindex('/')]) page_contents = response.read().decode() - str_time = re.findall(r'\d{2}-[A-Z][a-z]{2}-\d{4}', page_contents)[0] - return parse(str_time).timestamp() + str_time = re.findall(r'\d{2}-[A-Z][a-z]{2}-\d{4} \d{2}:\d{2}', + page_contents)[0] + return datetime.datetime.strptime(str_time, '%d-%b-%Y %H:%M').timestamp() def _is_update_required(distribution):