Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f7d51f43
Kaydet (Commit)
f7d51f43
authored
Haz 06, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
html export: More standard time specification in <meta/>.
Change-Id: I1a62d12531029cc36fb8aeabecb9d92a8af837f7
üst
c2034f39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
16 deletions
+9
-16
HtmlExportTest.cxx
sd/qa/unit/HtmlExportTest.cxx
+1
-1
frmhtmlw.cxx
sfx2/source/bastyp/frmhtmlw.cxx
+8
-15
No files found.
sd/qa/unit/HtmlExportTest.cxx
Dosyayı görüntüle @
f7d51f43
...
...
@@ -46,7 +46,7 @@ public:
assertXPath
(
htmlDoc
,
"/html/head/meta[1]"
,
"content"
,
"text/html; charset=utf-8"
);
assertXPath
(
htmlDoc
,
"/html/head/meta[2]"
,
"name"
,
"generator"
);
assertXPath
(
htmlDoc
,
"/html/head/meta[3]"
,
"name"
,
"created"
);
assertXPath
(
htmlDoc
,
"/html/head/meta[3]"
,
"content"
,
"2014
0409;170541
987922038"
);
assertXPath
(
htmlDoc
,
"/html/head/meta[3]"
,
"content"
,
"2014
-04-09T17:05:41.
987922038"
);
}
CPPUNIT_TEST_SUITE
(
SdHTMLFilterTest
);
...
...
sfx2/source/bastyp/frmhtmlw.cxx
Dosyayı görüntüle @
f7d51f43
...
...
@@ -44,9 +44,7 @@
#include <rtl/bootstrap.hxx>
#include <rtl/strbuf.hxx>
#include <sax/tools/converter.hxx>
using
namespace
::
com
::
sun
::
star
;
...
...
@@ -164,12 +162,10 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
// created
::
util
::
DateTime
uDT
=
i_xDocProps
->
getCreationDate
();
Date
aD
(
uDT
.
Day
,
uDT
.
Month
,
uDT
.
Year
);
Time
aT
(
uDT
.
Hours
,
uDT
.
Minutes
,
uDT
.
Seconds
,
uDT
.
NanoSeconds
);
OUString
sOut
=
OUString
::
number
(
aD
.
GetDate
());
sOut
+=
";"
;
sOut
+=
OUString
::
number
(
aT
.
GetTime
());
OutMeta
(
rStrm
,
pIndent
,
OOO_STRING_SVTOOLS_HTML_META_created
,
sOut
,
false
,
OUStringBuffer
aBuffer
;
::
sax
::
Converter
::
convertTimeOrDateTime
(
aBuffer
,
uDT
,
0
);
OutMeta
(
rStrm
,
pIndent
,
OOO_STRING_SVTOOLS_HTML_META_created
,
aBuffer
.
makeStringAndClear
(),
false
,
eDestEnc
,
pNonConvertableChars
);
// changedby
...
...
@@ -180,12 +176,9 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
// changed
uDT
=
i_xDocProps
->
getModificationDate
();
Date
aD2
(
uDT
.
Day
,
uDT
.
Month
,
uDT
.
Year
);
Time
aT2
(
uDT
.
Hours
,
uDT
.
Minutes
,
uDT
.
Seconds
,
uDT
.
NanoSeconds
);
sOut
=
OUString
::
number
(
aD2
.
GetDate
());
sOut
+=
";"
;
sOut
+=
OUString
::
number
(
aT2
.
GetTime
());
OutMeta
(
rStrm
,
pIndent
,
OOO_STRING_SVTOOLS_HTML_META_changed
,
sOut
,
false
,
::
sax
::
Converter
::
convertTimeOrDateTime
(
aBuffer
,
uDT
,
0
);
OutMeta
(
rStrm
,
pIndent
,
OOO_STRING_SVTOOLS_HTML_META_changed
,
aBuffer
.
makeStringAndClear
(),
false
,
eDestEnc
,
pNonConvertableChars
);
// Subject
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment