-<% USING: continuations namespaces io kernel math math.parser furnace webapps.pastebin ; %>
+<% USING: continuations namespaces io kernel math math.parser
+furnace webapps.pastebin calendar ; %>
<tr>
<td>
</a>
</td>
<td><% "author" get write %></td>
- <td><% "date" get print %></td>
+ <td><% "date" get timestamp>string print %></td>
</tr>
paste-summary
paste-link
paste-date
- } get-slots "" swap <entry>
+ } get-slots timestamp>rfc3339 f swap <entry>
] map ;
: feed.xml ( -- )
store get-global save-store ;
: add-paste ( paste pastebin -- )
- >r now timestamp>http-string over set-paste-date r>
+ >r now over set-paste-date r>
pastebin-pastes 2dup length swap set-paste-n push ;
: submit-paste ( summary author channel mode contents -- )
-<% USING: namespaces io furnace sequences xmode.code2html ; %>
+<% USING: namespaces io furnace sequences xmode.code2html calendar ; %>
<%
"Paste: " "summary" get append "title" set
<table>
<tr><th>Paste by:</th><td><% "author" get write %></td></tr>
<tr><th>Channel:</th><td><% "channel" get write %></td></tr>
-<tr><th>Created:</th><td><% "date" get write %></td></tr>
+<tr><th>Created:</th><td><% "date" get timestamp>string write %></td></tr>
<tr><th>File type:</th><td><% "mode" get write %></td></tr>
</table>