summaryrefslogtreecommitdiff
path: root/lib/date.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date.rb b/lib/date.rb
index cfb9b96..998c2e8 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -151,7 +151,7 @@ end
def Date.at(d)
if d.kind_of? Time
- return Date.new(1900+d.year, d.mon, d.mday)
+ return Date.new(1900+d.year, d.mon+1, d.mday)
end
if d.kind_of? Date
return Date.at(d.period)