]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/calendar/format/format.factor
calendar.format: fix timestamp>ymdhms (bad merge).
[factor.git] / basis / calendar / format / format.factor
index 9126352769e0f7805ce3f1bd8a8580c38d9f3b45..f7705f09b4227eab4195a1d823f8794625e82a49 100644 (file)
@@ -110,7 +110,7 @@ M: timestamp year. year>> year. ;
     [ hh:mm:ss ] with-string-writer ;
 
 : timestamp>ymdhms ( timestamp -- str )
-    [ >gmt YYYY-MM-DD " " hh:mm:ss ] with-string-writer ;
+    [ >gmt { YYYY-MM-DD " " hh:mm:ss } formatted ] with-string-writer ;
 
 : write-gmt-offset-hhmm ( gmt-offset -- )
     [ hour>> dup 0 < "-" "+" ? write abs write-00 ] [ mm ] bi ;