mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
Slight version format tweaks
This commit is contained in:
@@ -302,8 +302,8 @@ def _gitinfo():
|
||||
commit = f.readline()[:10]
|
||||
date = time.localtime(os.stat(branch_path).st_mtime)
|
||||
offset = time.timezone if (time.daylight == 0) else time.altzone
|
||||
result = "({0}) [{1}] {2} ({3:+04d})".format(branch, commit,
|
||||
time.strftime("%Y%m%d-%H%M%S", date), offset / -36)
|
||||
result = "({0} {1}) last updated {2} (GMT {3:+04d})".format(branch, commit,
|
||||
time.strftime("%Y/%m/%d %H:%M:%S", date), offset / -36)
|
||||
return result
|
||||
|
||||
def version(prog):
|
||||
|
||||
Reference in New Issue
Block a user