opal/corelib/time.rb in opal-1.0.5 vs opal/corelib/time.rb in opal-1.1.0.rc1

- old
+ new

@@ -1,5 +1,7 @@ +# helpers: slice + require 'corelib/comparable' class Time < `Date` include Comparable @@ -491,9 +493,11 @@ blank = !zero result += #{day}; break; case 'j': + zero = !blank; + width = isNaN(width) ? 3 : width; result += #{yday}; break; case 'H': zero = !blank;