From 36885762ba92265b1ee088cc4bf19f3eb3e0b533 Mon Sep 17 00:00:00 2001 From: Rob Heittman Date: Sat, 23 Jun 2012 11:07:23 -0400 Subject: Google Docs interoperability Google is especially sensitive to the format of the created stamp in the core.xml document. It must end in Z and will not accept another timezone offset or no timezone offset. This seems to work for all my documents. See #80 --- lib/axlsx/doc_props/core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/axlsx/doc_props/core.rb b/lib/axlsx/doc_props/core.rb index b3c80991..d894c73c 100644 --- a/lib/axlsx/doc_props/core.rb +++ b/lib/axlsx/doc_props/core.rb @@ -22,7 +22,7 @@ module Axlsx str << 'xmlns:dcmitype="' << CORE_NS_DCMIT << '" xmlns:dcterms="' << CORE_NS_DCT << '" ' str << 'xmlns:xsi="' << CORE_NS_XSI << '">' str << '' << self.creator << '' - str << '' << Time.now.strftime('%Y-%m-%dT%H:%M:%S') << '' + str << '' << Time.now.strftime('%Y-%m-%dT%H:%M:%S') << 'Z' str << '0' str << '' end -- cgit v1.2.3