diff options
author | Jani Välimaa <wally@mageia.org> | 2024-10-28 20:30:51 +0200 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2024-10-28 20:30:51 +0200 |
commit | 90a705d756a0569230f5576570e3b96e69376a30 (patch) | |
tree | f496e5579ed5747c2b5e401227300560799ffe96 | |
parent | 599269295da55c5f1ac71cf274460e92ee5f7eb7 (diff) | |
download | puppet-90a705d756a0569230f5576570e3b96e69376a30.tar puppet-90a705d756a0569230f5576570e3b96e69376a30.tar.gz puppet-90a705d756a0569230f5576570e3b96e69376a30.tar.bz2 puppet-90a705d756a0569230f5576570e3b96e69376a30.tar.xz puppet-90a705d756a0569230f5576570e3b96e69376a30.zip |
Use UTC time in mirror status page
-rwxr-xr-x | modules/mga-mirrors/files/check_mirrors_status | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status index 5ee30c1a..2d5fc7d4 100755 --- a/modules/mga-mirrors/files/check_mirrors_status +++ b/modules/mga-mirrors/files/check_mirrors_status @@ -140,7 +140,7 @@ def format_age(ref_time, time) end def print_output(archs_per_distro, mirrors, ref_times, times) - puts "<html><head><title>Mageia Mirror Status #{Time.now.strftime("%F")}</title> + puts "<html><head><title>Mageia Mirror Status #{Time.now.utc.strftime("%F")}</title> <link rel=\"icon\" type=\"image/png\" href=\"//www.mageia.org/g/favicon.png\"> <style> td.broken {background-color:#FF0033;} @@ -158,7 +158,7 @@ th {background-color:#EEEEEE;} </style> </head> <body>" - puts "Last checked on #{Time.now.strftime("%F %R %Z")}<br/>" + puts "Last checked on #{Time.now.utc.strftime("%F %R %Z")}<br/>" puts "<table class='legend'><tr><td class='ok'>Up to date</td><td class='almost'>Less than 12h old</td><td class='bad'>Less than 2 days old</td><td class='broken'>Old or broken</td></tr></table>" puts "<table><thead>" puts "<tr><td/>" |