diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-02-06 06:43:02 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-02-06 06:43:02 +0000 |
commit | 72385a7be65bb27b07cd2ee3bc9fe221d8e04f90 (patch) | |
tree | 24e89ad3c45c6bcd41ddaa0f02d8e4918c28d51d /activesupport/test/time_zone_test.rb | |
parent | 692dbbf79387b56e241e1acd05f74f7d71ff79a6 (diff) | |
download | rails-72385a7be65bb27b07cd2ee3bc9fe221d8e04f90.tar.gz rails-72385a7be65bb27b07cd2ee3bc9fe221d8e04f90.tar.bz2 rails-72385a7be65bb27b07cd2ee3bc9fe221d8e04f90.zip |
Add Time Zone support to ActiveRecord, and config.time_zone property for specifying a default Time Zone. Closes #10982 [Geoff Buesing, rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/time_zone_test.rb')
-rw-r--r-- | activesupport/test/time_zone_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/time_zone_test.rb b/activesupport/test/time_zone_test.rb index c32218cee2..cd3972a41c 100644 --- a/activesupport/test/time_zone_test.rb +++ b/activesupport/test/time_zone_test.rb @@ -128,5 +128,11 @@ class TimeZoneTest < Test::Unit::TestCase assert TimeZone.us_zones.include?(TimeZone["Hawaii"]) assert !TimeZone.us_zones.include?(TimeZone["Kuala Lumpur"]) end + + def test_new + time = TimeZone["Hawaii"].new(2007, 2, 5, 15, 30, 45) + assert_equal Time.utc(2007, 2, 5, 15, 30, 45), time.time + assert_equal TimeZone["Hawaii"], time.time_zone + end end |