From 4614ebda4a9a066c809905978b8b72805366b205 Mon Sep 17 00:00:00 2001 From: Darrell Wright Date: Thu, 23 Nov 2017 20:25:00 -0500 Subject: [PATCH] Update to accomidate change of iana url #241 --- src/tz.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tz.cpp b/src/tz.cpp index 4e09c86..a34f795 100644 --- a/src/tz.cpp +++ b/src/tz.cpp @@ -2833,7 +2833,7 @@ remote_version() std::string str; if (download_to_string("http://www.iana.org/time-zones", str)) { - CONSTDATA char db[] = "/time-zones/repository/releases/tzdata"; + CONSTDATA char db[] = "/time-zones/releases/tzdata"; CONSTDATA auto db_size = sizeof(db) - 1; auto p = str.find(db, 0, db_size); const int ver_str_len = 5; @@ -3238,7 +3238,7 @@ remote_download(const std::string& version) } # endif // _WIN32 - auto url = "http://www.iana.org/time-zones/repository/releases/tzdata" + version + + auto url = "http://www.iana.org/time-zones/releases/tzdata" + version + ".tar.gz"; bool result = download_to_file(url, get_download_gz_file(version), download_file_options::binary);