diff options
| author | Rob Heittman <[email protected]> | 2012-06-23 11:07:23 -0400 |
|---|---|---|
| committer | Rob Heittman <[email protected]> | 2012-06-23 11:07:23 -0400 |
| commit | 36885762ba92265b1ee088cc4bf19f3eb3e0b533 (patch) | |
| tree | 35789136c2c09a98e215020054a17e87ebcbb14a /lib/axlsx/doc_props | |
| parent | f932da97df4af019f4ae4c0d95d676bd2eb1f2e2 (diff) | |
| download | caxlsx-36885762ba92265b1ee088cc4bf19f3eb3e0b533.tar.gz caxlsx-36885762ba92265b1ee088cc4bf19f3eb3e0b533.zip | |
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
Diffstat (limited to 'lib/axlsx/doc_props')
| -rw-r--r-- | lib/axlsx/doc_props/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 << '<dc:creator>' << self.creator << '</dc:creator>' - str << '<dcterms:created xsi:type="dcterms:W3CDTF">' << Time.now.strftime('%Y-%m-%dT%H:%M:%S') << '</dcterms:created>' + str << '<dcterms:created xsi:type="dcterms:W3CDTF">' << Time.now.strftime('%Y-%m-%dT%H:%M:%S') << 'Z</dcterms:created>' str << '<cp:revision>0</cp:revision>' str << '</cp:coreProperties>' end |
