Skip to content

Commit

Permalink
fixed a rubygems 1.3.2 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mattetti committed Apr 20, 2009
1 parent a5ee3a0 commit fe3d2b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion merb-core/lib/merb-core/core_ext.rb
Expand Up @@ -7,4 +7,5 @@

require File.dirname(__FILE__) / "core_ext" / "kernel"
require File.dirname(__FILE__) / "core_ext" / "hash"
require File.dirname(__FILE__) / "core_ext" / "class"
require File.dirname(__FILE__) / "core_ext" / "class"
require File.dirname(__FILE__) / "core_ext" / "time"
7 changes: 7 additions & 0 deletions merb-core/lib/merb-core/core_ext/time.rb
@@ -0,0 +1,7 @@
# Declared to bypass a rubygems 1.3.2 bug :(
class Time
def self.today
t = Time.now
t - ((t.to_f + t.gmt_offset) % 86400)
end
end

0 comments on commit fe3d2b6

Please sign in to comment.