Changed format for dates in guestbook template.
This commit is contained in:
parent
240a8c389e
commit
433c80b41f
@ -40,14 +40,14 @@ block content
|
|||||||
each entry in entries
|
each entry in entries
|
||||||
article
|
article
|
||||||
header
|
header
|
||||||
- var created_tz = util.ToClientTimezone(entry.Created, r).Format("2006-01-02T15:04:05")
|
- var created_tz = util.ToClientTimezone(entry.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00")
|
||||||
| Entry ##{entry.ID} by #[span.highlighted #{entry.Name}] #[em #{entry.Website}] on #[time(datetime=created_tz) #{created_tz}]
|
| ##{entry.ID} by #[span.highlighted #{entry.Name}] #[em #{entry.Website}] on #[time(datetime=created_tz) #{created_tz}]
|
||||||
each line in strings.Split(entry.Message, "\n")
|
each line in strings.Split(entry.Message, "\n")
|
||||||
+entryLine(line)
|
+entryLine(line)
|
||||||
if (entry.Reply != nil)
|
if (entry.Reply != nil)
|
||||||
.reply
|
.reply
|
||||||
header
|
header
|
||||||
- var reply_created_tz = util.ToClientTimezone(entry.Reply.Created, r).Format("2006-01-02 15:04:05")
|
- var reply_created_tz = util.ToClientTimezone(entry.Reply.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00")
|
||||||
| Reply by #[span.highlighted #{owner}] on #[time(datetime=reply_created_tz) #{reply_created_tz}]
|
| Reply by #[span.highlighted #{owner}] on #[time(datetime=reply_created_tz) #{reply_created_tz}]
|
||||||
each line in strings.Split(entry.Reply.Message, "\n")
|
each line in strings.Split(entry.Reply.Message, "\n")
|
||||||
+entryLine(line)
|
+entryLine(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user