Replaced (UTC) with %Z
authorspirillen <redacted>
Fri, 7 Dec 2018 13:31:52 +0000 (14:31 +0100)
committerGitHub <redacted>
Fri, 7 Dec 2018 13:31:52 +0000 (14:31 +0100)
I've changed as suggested in https://github.com/StevenBlack/hosts/pull/836#issuecomment-440452979 by @funilrys

The reason I choose NOT to convert this into ISO-8601 is, that we read date.time in different ways depending on with side on the pond we live. By using the "%d %B %Y %H:%M:%S (%Z)" Full date/time this issue is eliminated  and any confusion on how to read the date is no longer existent. The ISO-8601 is good for active pages, as the date ordering is to be manipulated by interface.

Alternative to this is we should add extra lines/info about the date.time ordering, do to this i found this as the easiest way to give this information

updateHostsFile.py

index 0022bc4aa08b8d3e608e3dd29c261a0d0f29811c..bc82cda115eee8fee56f6228226ff7f50645cc91 100644 (file)
@@ -925,7 +925,7 @@ def write_opening_header(final_file, **header_params):
     write_data(final_file, "# This hosts file is a merged collection "
                            "of hosts from reputable sources,\n")
     write_data(final_file, "# with a dash of crowd sourcing via Github\n#\n")
-    write_data(final_file, "# Date: " + time.strftime("%d %B %Y %H:%M:%S (UTC)", time.gmtime()) + "\n")
+    write_data(final_file, "# Date: " + time.strftime("%d %B %Y %H:%M:%S (%Z)", time.gmtime()) + "\n")
 
     if header_params["extensions"]:
         write_data(final_file, "# Extensions added to this file: " + ", ".join(
git clone https://git.99rst.org/PROJECT