Update to accomidate change of iana url #241

This commit is contained in:
Darrell Wright 2017-11-23 20:25:00 -05:00 committed by GitHub
parent c286981b3b
commit 4614ebda4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2833,7 +2833,7 @@ remote_version()
std::string str; std::string str;
if (download_to_string("http://www.iana.org/time-zones", 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; CONSTDATA auto db_size = sizeof(db) - 1;
auto p = str.find(db, 0, db_size); auto p = str.find(db, 0, db_size);
const int ver_str_len = 5; const int ver_str_len = 5;
@ -3238,7 +3238,7 @@ remote_download(const std::string& version)
} }
# endif // _WIN32 # 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"; ".tar.gz";
bool result = download_to_file(url, get_download_gz_file(version), bool result = download_to_file(url, get_download_gz_file(version),
download_file_options::binary); download_file_options::binary);