comparison cutils/treesum.py @ 291:cc2deeb5f2e6

treesum: Indicate that the ISO timestamp is UTC
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 25 Feb 2025 10:51:02 +0100
parents 3c3f8151f36a
children 4a259fb9968e
comparison
equal deleted inserted replaced
290:3c3f8151f36a 291:cc2deeb5f2e6
537 537
538 if self._minimal is None: 538 if self._minimal is None:
539 # Write execution timestamps in POSIX epoch and ISO format 539 # Write execution timestamps in POSIX epoch and ISO format
540 ts = int(time.time()) 540 ts = int(time.time())
541 self._writer.write_timestamp(ts) 541 self._writer.write_timestamp(ts)
542 ts = (datetime.datetime.utcfromtimestamp(ts)).isoformat("T") 542 ts = (datetime.datetime.utcfromtimestamp(ts)).isoformat("T") + "Z"
543 self._writer.write_isotimestamp(ts) 543 self._writer.write_isotimestamp(ts)
544 544
545 if comment: 545 if comment:
546 for line in comment: 546 for line in comment:
547 self._writer.write_comment(line) 547 self._writer.write_comment(line)