From: spirillen Date: Fri, 7 Dec 2018 13:31:52 +0000 (+0100) Subject: Replaced (UTC) with %Z X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ddf5a7290638fb013e52b702a206f625ac0d7c5e;p=stevenblack-hosts.git Replaced (UTC) with %Z 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 --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 0022bc4aa..bc82cda11 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -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(