Skip to content

Commit

Permalink
Ruby compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed May 19, 2016
1 parent f7c8bd7 commit 894470d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/edtf/date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def edtf

v = values
s = FORMATS.take(v.length).zip(v).map { |f,d| f % d.abs }
s[0] = "-#{s[0]}" if year.negative?
s[0] = "-#{s[0]}" if year < 0
s = unspecified.mask(s)

unless (h = ua_hash).zero?
Expand Down

0 comments on commit 894470d

Please sign in to comment.