Skip to content

Commit

Permalink
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion spec/truffle/tags/core/time/strftime_tags.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
fails:Time#strftime requires an argument
fails:Time#strftime rounds an offset to the nearest second when formatting with %z
fails:Time#strftime with %N formats the picoseconds of the second with %12N
3 changes: 1 addition & 2 deletions truffle/src/main/ruby/core/time.rb
Original file line number Diff line number Diff line change
@@ -70,8 +70,7 @@ def to_a
end

def strftime(format)
Truffle.primitive :time_strftime
raise PrimitiveFailure, "Time#strftime primitive failed"
Truffle.invoke_primitive :time_strftime, self, StringValue(format)
end

MonthValue = {

0 comments on commit ca5556b

Please sign in to comment.