diff options
Diffstat (limited to 'devel')
-rwxr-xr-x | devel/nmbug/nmbug-status | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index b7c2f80e..c0bdd1b6 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -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), |