motyl

Opinionated blog-aware static site generator written in Ruby
Log | Files | Refs | README | LICENSE

commit c6bf94d4888c7bda4f50336065840e9f4a54b746
parent b1484b8c361000c76cdd96c1b17db56d934e60e8
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 14 May 2017 22:28:24 +0200

Use RFC-3339 date-time in ATOM feed

Diffstat:
Msrc/motyl.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/motyl.lua b/src/motyl.lua @@ -101,7 +101,7 @@ local function render(directory) if directory == "posts" then local year, month, day, hour, min = data.page.date:match("(%d+)%-(%d+)%-(%d+) (%d+)%:(%d+)") - data.page.datetime = os.date("%c", os.time{year=year, month=month, day=day, hour=hour, min=min}) + data.page.datetime = os.date("%Y-%m-%dT%H:%M:%SZ", os.time{year=year, month=month, day=day, hour=hour, min=min}) table.insert(data.site.posts, data.page)