diff options
author | Geoff Buesing <gbuesing@gmail.com> | 2008-03-17 03:45:32 +0000 |
---|---|---|
committer | Geoff Buesing <gbuesing@gmail.com> | 2008-03-17 03:45:32 +0000 |
commit | b132413885cff785851980dc1740a003109214b7 (patch) | |
tree | 074620a90d288f7dc0d291fde30ce763dd79b621 /activesupport/lib/active_support/time_with_zone.rb | |
parent | 895487c1224bf85047f317e7bddf4f2abdea0822 (diff) | |
download | rails-b132413885cff785851980dc1740a003109214b7.tar.gz rails-b132413885cff785851980dc1740a003109214b7.tar.bz2 rails-b132413885cff785851980dc1740a003109214b7.zip |
Adding TimeZone#at and DateTime#to_f
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9042 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/time_with_zone.rb')
-rw-r--r-- | activesupport/lib/active_support/time_with_zone.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb index 10c3543d6e..ca82c2e004 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -160,7 +160,7 @@ module ActiveSupport end unless RUBY_VERSION < '1.9' def to_a - time.to_a[0, 8].push(dst?, zone) + [time.sec, time.min, time.hour, time.day, time.mon, time.year, time.wday, time.yday, dst?, zone] end def to_f |