diff --git a/extra/webapps/pastebin/paste-summary.furnace b/extra/webapps/pastebin/paste-summary.furnace
index a50f0ca140..f8938eabca 100644
--- a/extra/webapps/pastebin/paste-summary.furnace
+++ b/extra/webapps/pastebin/paste-summary.furnace
@@ -1,4 +1,5 @@
-<% USING: continuations namespaces io kernel math math.parser furnace webapps.pastebin ; %>
+<% USING: continuations namespaces io kernel math math.parser
+furnace webapps.pastebin calendar ; %>
@@ -7,5 +8,5 @@
|
<% "author" get write %> |
- <% "date" get print %> |
+ <% "date" get timestamp>string print %> |
diff --git a/extra/webapps/pastebin/pastebin.factor b/extra/webapps/pastebin/pastebin.factor
index 555670e7fa..48154fef85 100755
--- a/extra/webapps/pastebin/pastebin.factor
+++ b/extra/webapps/pastebin/pastebin.factor
@@ -60,7 +60,7 @@ SYMBOL: store
paste-summary
paste-link
paste-date
- } get-slots "" swap
+ } get-slots timestamp>rfc3339 f swap
] map ;
: feed.xml ( -- )
@@ -75,7 +75,7 @@ SYMBOL: store
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 -- )
diff --git a/extra/webapps/pastebin/show-paste.furnace b/extra/webapps/pastebin/show-paste.furnace
index 56255dcd95..6a78135343 100755
--- a/extra/webapps/pastebin/show-paste.furnace
+++ b/extra/webapps/pastebin/show-paste.furnace
@@ -1,4 +1,4 @@
-<% USING: namespaces io furnace sequences xmode.code2html ; %>
+<% USING: namespaces io furnace sequences xmode.code2html calendar ; %>
<%
"Paste: " "summary" get append "title" set
@@ -8,7 +8,7 @@
Paste by: | <% "author" get write %> |
Channel: | <% "channel" get write %> |
-Created: | <% "date" get write %> |
+Created: | <% "date" get timestamp>string write %> |
File type: | <% "mode" get write %> |