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,
'''.format(**context),
footer='''
<hr>
-<p>Generated: {date}
+<p>Generated: {datetime}
</body>
</html>
'''.format(**context),