summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-09-14 16:00:26 +0900
committerRandy Morgan <[email protected]>2012-09-14 16:00:26 +0900
commit397af756fc7ff412dd7472e845143a5223a81a83 (patch)
treeeca7a583bf5d74b1f1831004568aa5dfbfb20bd1
parentdf0d6d5222bd28c912652dee5b515598cb9da76a (diff)
downloadcaxlsx-397af756fc7ff412dd7472e845143a5223a81a83.tar.gz
caxlsx-397af756fc7ff412dd7472e845143a5223a81a83.zip
small bit of code cleanup
-rw-r--r--lib/axlsx/workbook/worksheet/date_time_converter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/date_time_converter.rb b/lib/axlsx/workbook/worksheet/date_time_converter.rb
index d2d9a014..a755a8e8 100644
--- a/lib/axlsx/workbook/worksheet/date_time_converter.rb
+++ b/lib/axlsx/workbook/worksheet/date_time_converter.rb
@@ -10,7 +10,7 @@ module Axlsx
# @return [Numeric]
def self.date_to_serial(date)
epoch = Axlsx::Workbook::date1904 ? Date.new(1904) : Date.new(1899, 12, 30)
- (date-epoch).to_f
+ (date - epoch).to_f
end
# The time_to_serial methond converts a Time object its excel serialized form.