summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/worksheet/tc_date_time_converter.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-23 10:51:26 +0900
committerRandy Morgan <[email protected]>2012-02-23 10:51:26 +0900
commitbde6f651d0a7c0f9661c881bbb1a5e44f3e83c9f (patch)
tree71ae372575f16b0025549b88c33162175e87d2a0 /test/workbook/worksheet/tc_date_time_converter.rb
parent42b3af1a8b6e6a68c200f40d35e0dbad5b7316c3 (diff)
downloadcaxlsx-bde6f651d0a7c0f9661c881bbb1a5e44f3e83c9f.tar.gz
caxlsx-bde6f651d0a7c0f9661c881bbb1a5e44f3e83c9f.zip
disable timezone testing for 1.8.7 for now
Diffstat (limited to 'test/workbook/worksheet/tc_date_time_converter.rb')
-rw-r--r--test/workbook/worksheet/tc_date_time_converter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/workbook/worksheet/tc_date_time_converter.rb b/test/workbook/worksheet/tc_date_time_converter.rb
index 9bc5b311..bd3d044d 100644
--- a/test/workbook/worksheet/tc_date_time_converter.rb
+++ b/test/workbook/worksheet/tc_date_time_converter.rb
@@ -96,6 +96,7 @@ class TestDateTimeConverter < Test::Unit::TestCase
end
def test_timezone
+ return if RUBY_VERSION == '1.8.7' # temporarily forcing this to only run on 1.9.2 and 1.9.3 as Time.new is quite different in 1.8.7
utc = Time.utc 2012 # January 1st, 2012 at 0:00 UTC
local = Time.new 2012, 1, 1, 1, 0, 0, 3600 # January 1st, 2012 at 1:00 GMT+1
assert_equal local, utc