summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-12-01 14:38:13 +0900
committerRandy Morgan <[email protected]>2011-12-01 14:38:13 +0900
commit6439ce4d2ec5c97ad82a8dc10d974ca9754f2113 (patch)
tree87b3958c6cff8b7c2aed2804702a8ff8089d841f /examples
parent8cf0296bbc16e8eb535e9af932eed2557d5e66d2 (diff)
downloadcaxlsx-6439ce4d2ec5c97ad82a8dc10d974ca9754f2113.tar.gz
caxlsx-6439ce4d2ec5c97ad82a8dc10d974ca9754f2113.zip
added default formatting for date types when the cell style is 0 and the data type is :time
Diffstat (limited to 'examples')
-rw-r--r--examples/example.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.rb b/examples/example.rb
index 1ef2ab24..609096b5 100644
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -9,7 +9,7 @@ if ARGV.size == 0 || ARGV.include?("1")
p = Axlsx::Package.new
p.workbook.add_worksheet do |sheet|
sheet.add_row ["First", "Second", "Third"]
- sheet.add_row [1, 2, 3]
+ sheet.add_row [1, 2, Time.now]
end
p.serialize("example1.xlsx")
end