From 0c6eb83fe52f0c9e5c9c2bce484d6e9397f54743 Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Tue, 4 Jun 2013 19:23:58 +0200 Subject: [PATCH] Fixes rss generated dates to conform to RFC-3339. The timezone was missing, since all are UTC, adds a Z. --- main.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.tmpl b/main.tmpl index 4c2709e..b0e15f5 100644 --- a/main.tmpl +++ b/main.tmpl @@ -95,7 +95,7 @@ #proc genThreadsRSS(c: var TForumData): string = # result = "" # const query = sql"""SELECT A.id, A.name, -# strftime('%Y-%m-%dT%H:%M:%S', (A.modified)), +# strftime('%Y-%m-%dT%H:%M:%SZ', (A.modified)), # COUNT(B.id), C.name, B.content, B.id # FROM thread AS A, post AS B, person AS C # WHERE A.id = b.thread AND B.author = C.id @@ -110,7 +110,7 @@ # const postId = 6 # let frontQuery = c.req.makeUri("/") # let recent = GetValue(db, sql"""SELECT -# strftime('%Y-%m-%dT%H:%M:%S', (modified)) FROM thread +# strftime('%Y-%m-%dT%H:%M:%SZ', (modified)) FROM thread # ORDER BY modified DESC LIMIT 1""") @@ -140,7 +140,7 @@ #proc genPostsRSS(c: var TForumData): string = # result = "" # const query = sql"""SELECT A.id, B.name, A.content, A.thread, -# A.header, strftime('%Y-%m-%dT%H:%M:%S', A.creation), +# A.header, strftime('%Y-%m-%dT%H:%M:%SZ', A.creation), # A.creation, COUNT(C.id) # FROM post AS A, person AS B, post AS C # WHERE A.author = B.id AND A.thread = C.thread AND C.id <= A.id @@ -156,7 +156,7 @@ # const postPosition = 7 # let frontQuery = c.req.makeUri("/") # let recent = GetValue(db, sql"""SELECT -# strftime('%Y-%m-%dT%H:%M:%S', creation) FROM post +# strftime('%Y-%m-%dT%H:%M:%SZ', creation) FROM post # ORDER BY creation DESC LIMIT 1""")