From 0ef6d32402f810ef955d87cc395dbffd08db304a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 2 May 2017 12:24:32 +0200 Subject: reproducible Debian: use human-readable time format Signed-off-by: Holger Levsen --- bin/reproducible_scheduler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index 3b760b6c..bc611468 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -240,7 +240,7 @@ def update_sources(suite): for arch in ARCHS: log.info('Updating sources db for %s/%s...', suite, arch) update_sources_db(suite, arch, sources) - log.info('DB update done for %s/%s done at %s.', suite, arch, datetime.now()) + log.info('DB update done for %s/%s done at %s.', suite, arch, datetime.now().strftime("%Y-%m-%d %H:%M:%S")) def update_sources_db(suite, arch, sources): @@ -730,7 +730,7 @@ if __name__ == '__main__': log.info('Updating sources tables for all suites.') for suite in SUITES: update_sources(suite) - log.info('Sources for suite %s done at %s.', suite, datetime.now()) + log.info('Sources for suite %s done at %s.', suite, datetime.now().strftime("%Y-%m-%d %H:%M:%S")) purge_old_pages() query = "SELECT count(*) " + \ "FROM schedule AS p JOIN sources AS s ON s.id=p.package_id " + \ @@ -745,7 +745,7 @@ if __name__ == '__main__': log.info('%s packages already scheduled for %s, probably scheduling some ' 'more...', overall, arch) message += scheduler(arch) + '\n' - log.info('Arch %s scheduled at %s.', arch, datetime.now()) + log.info('Arch %s scheduled at %s.', arch, datetime.now().strftime("%Y-%m-%d %H:%M:%S")) if message != '': # build the kgb message text message = 'Scheduled in ' + '+'.join(SUITES) + ':\n' + message -- cgit v1.2.3-70-g09d2