We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c10a0c6 + 54121ca commit 055af34Copy full SHA for 055af34
lib/rdt.rb
@@ -66,7 +66,7 @@ def to_s
66
return strftime($opts[:df]) if $opts && $opts[:df] && $opts[:nrd]
67
return super unless $today && $opts
68
69
- case (self - $today).round
+ case (self - $today).floor
70
when -2 then 'day before yesterday'
71
when -1 then 'yesterday'
72
when 0 then 'today'
0 commit comments