diff --git a/ait/core/dmc.py b/ait/core/dmc.py index 34fafd41..e58f89aa 100644 --- a/ait/core/dmc.py +++ b/ait/core/dmc.py @@ -346,7 +346,7 @@ def _update_leap_second_data(self): """Updates the systems leap second information Pulls the latest leap second information from - https://www.ietf.org/timezones/data/leap-seconds.list + https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list and updates the leapsecond config file. Raises: @@ -361,7 +361,7 @@ def _update_leap_second_data(self): os.path.join(ait.config._directory, _DEFAULT_FILE_NAME), ) - url = "https://www.ietf.org/timezones/data/leap-seconds.list" + url = "https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list" r = requests.get(url) if r.status_code != 200: @@ -374,13 +374,13 @@ def _update_leap_second_data(self): data = {"valid": None, "leapseconds": []} data["valid"] = datetime.datetime(1900, 1, 1) + datetime.timedelta( - seconds=int(lines[0].split("\t")[1]) + seconds=int(lines[0].split()[1]) ) leap = 1 for line in lines[1:-1]: t = datetime.datetime(1900, 1, 1) + datetime.timedelta( - seconds=int(line.split("\t")[0]) + seconds=int(line.split()[0]) ) if t < GPS_Epoch: continue diff --git a/config/leapseconds.dat b/config/leapseconds.dat index 815ff2d1..cee21e08 100644 Binary files a/config/leapseconds.dat and b/config/leapseconds.dat differ