]> git.notmuchmail.org Git - notmuch/blobdiff - devel/nmbug/nmbug-status
nmbug-status: Add the time to the footer's build-date
[notmuch] / devel / nmbug / nmbug-status
index b7c2f80ec75133cdddd983ad227f0d3608e2e832..c0bdd1b6e7722936cf02df7b7a1985f064c03051 100755 (executable)
@@ -275,8 +275,10 @@ parser.add_argument('--get-query', help='get query for view',
 args = parser.parse_args()
 
 config = read_config(path=args.config)
+now = datetime.datetime.utcnow()
 context = {
-    'date': datetime.datetime.utcnow(),
+    'date': now,
+    'datetime': now.strftime('%Y-%m-%d %H:%M:%SZ'),
     'title': config['meta']['title'],
     'blurb': config['meta']['blurb'],
     'encoding': _ENCODING,
@@ -339,7 +341,7 @@ _PAGES['html'] = HtmlPage(
 '''.format(**context),
     footer='''
 <hr>
-<p>Generated: {date}
+<p>Generated: {datetime}
 </body>
 </html>
 '''.format(**context),