]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/calendar/calendar.factor
calendar: fix tests that were breaking in other timezones
[factor.git] / basis / calendar / calendar.factor
index b41af7955b5c5a2daaf1a5e1fe4351eedf25543c..df7349d65e30a231cf90eec16f31f0bc5808aabd 100644 (file)
@@ -816,7 +816,7 @@ CONSTANT: weekday-offsets { 0 0 1 2 3 4 5 }
 
 : year-ordinal>timestamp ( year ordinal -- timestamp )
     [ 1 1 julian-day-number ] dip
-    + 1 - julian-day-number>date <date> ;
+    + 1 - julian-day-number>date <date-gmt> ;
 
 GENERIC: weeks-in-week-year ( obj -- n )