diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-08-11 16:29:13 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-08-18 15:15:50 +0200 |
commit | ece27b6e1c7d924715cc8a75f9d4a85636d84fff (patch) | |
tree | c459cda6b210b2c1a623b1e7b60ae4137b78b4a4 /sw | |
parent | eccb19aebbef1a11a38e7ffb6b51c1fa6eded7e8 (diff) |
hack, write .docx datetime as local but mark as utc
since that's how MSOffice reads it :-/
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index c66bb9df749b..7c5a399028ec 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -1265,7 +1265,9 @@ to find it, unfortunately :-( static OString impl_DateTimeToOString( const DateTime& rDateTime ) { DateTime aInUTC( rDateTime ); - aInUTC.ConvertToUTC(); +// HACK: this is correct according to the spec, but MSOffice believes everybody lives +// in UTC+0 when reading it back +// aInUTC.ConvertToUTC(); OStringBuffer aBuffer( 25 ); aBuffer.append( sal_Int32( aInUTC.GetYear() ) ); |