commit 2473862c3a973d08ff988919f805a4423c7de8d9
parent 7b9583a66d46774b8d78317d9db55672aa7554a3
Author: Frederic Cambus <fred@statdns.com>
Date: Thu, 19 Apr 2018 10:11:34 +0200
Tweak generated date for posts and pages
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/motyl b/bin/motyl
@@ -6,7 +6,7 @@
# https://github.com/fcambus/motyl #
# #
# Created: 2016-02-16 #
-# Last Updated: 2018-04-18 #
+# Last Updated: 2018-04-19 #
# #
# Motyl is released under the BSD 2-Clause license. #
# See LICENSE file for details. #
@@ -63,7 +63,7 @@ def render(directory, templates, data)
status('Rendering ' + data['page']['url'])
if directory == 'posts'
- data['page']['datetime'] = DateTime.parse(data['page']['date'])
+ data['page']['datetime'] = DateTime.parse(data['page']['date']).strftime('%Y-%m-%dT%XZ')
data['posts'].push(data['page'])