diff --git a/.gitlab-ci/meson-html-report.py b/.gitlab-ci/meson-html-report.py index c7930a1b7a..ba7d01c5ba 100755 --- a/.gitlab-ci/meson-html-report.py +++ b/.gitlab-ci/meson-html-report.py @@ -324,7 +324,7 @@ for line in args.infile: units.append(unit) report = {} -report['date'] = datetime.datetime.utcnow() +report['date'] = datetime.datetime.now(datetime.UTC) report['locale_date'] = report['date'].strftime("%c") report['project_name'] = args.project_name report['backend'] = args.backend diff --git a/.gitlab-ci/meson-junit-report.py b/.gitlab-ci/meson-junit-report.py index d76f9d85e2..e9dd5c72c5 100755 --- a/.gitlab-ci/meson-junit-report.py +++ b/.gitlab-ci/meson-junit-report.py @@ -44,7 +44,7 @@ outfile = args.output testsuites = ET.Element('testsuites') testsuites.set('id', '{}/{}'.format(args.job_id, args.branch)) testsuites.set('package', args.project_name) -testsuites.set('timestamp', datetime.datetime.utcnow().isoformat(timespec='minutes')) +testsuites.set('timestamp', datetime.datetime.now(datetime.UTC).isoformat(timespec='minutes')) suites = {} for line in args.infile: