]> gitweb.factorcode.org Git - factor.git/commitdiff
calendar.format: fix timestamp>ymdhms (bad merge).
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 17 Dec 2020 04:51:28 +0000 (20:51 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 17 Dec 2020 04:51:28 +0000 (20:51 -0800)
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 ;