summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-11-30 07:52:46 +0900
committerRandy Morgan <[email protected]>2011-11-30 07:52:46 +0900
commit4fcf75ff45cb3f5265aec534bf2f6a02ebebc4a9 (patch)
treef7194e4afa01bd2917bcb0c4112f47410115aa06 /lib
parent6267d20703af8cdd3bed97ff5b71b4faa4dd2232 (diff)
downloadcaxlsx-4fcf75ff45cb3f5265aec534bf2f6a02ebebc4a9.tar.gz
caxlsx-4fcf75ff45cb3f5265aec534bf2f6a02ebebc4a9.zip
Output time in rake test to see what time travis thinks it is.
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb
index 6656428f..a32d19e7 100644
--- a/lib/axlsx/workbook/worksheet/cell.rb
+++ b/lib/axlsx/workbook/worksheet/cell.rb
@@ -169,8 +169,8 @@ module Axlsx
def cast_value(v)
if (@type == :time && v.is_a?(Time)) || (@type == :time && v.respond_to?(:to_time))
v = v.respond_to?(:to_time) ? v.to_time : v
- epoc1900 = Time.local(1900,1,1)
- epoc1904 = Time.local(1904,1,1)
+ epoc1900 = Time.local(1900, 1, 1)
+ epoc1904 = Time.local(1904, 1, 1)
epoc = Workbook.date1904 ? epoc1904 : epoc1900
((v.localtime - epoc) /60.0/60.0/24.0).to_f
elsif @type == :float