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
4f850e06
Kaydet (Commit)
4f850e06
authored
Eyl 24, 2012
tarafından
Ivan Timofeev
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String -> OUString
Change-Id: I252675bf223b8a14dff2b4bcdbfd926979e56dc3
üst
57bd5cf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
22 deletions
+19
-22
xsecctl.cxx
xmlsecurity/source/helper/xsecctl.cxx
+19
-22
No files found.
xmlsecurity/source/helper/xsecctl.cxx
Dosyayı görüntüle @
4f850e06
...
...
@@ -30,7 +30,6 @@
#include <xmloff/attrlist.hxx>
#include <rtl/math.hxx>
#include <tools/string.hxx>
namespace
cssu
=
com
::
sun
::
star
::
uno
;
namespace
cssl
=
com
::
sun
::
star
::
lang
;
...
...
@@ -112,42 +111,40 @@ sal_Bool XSecController::convertNumber( sal_Int32& rValue,
void
XSecController
::
convertDateTime
(
::
rtl
::
OUStringBuffer
&
rBuffer
,
const
com
::
sun
::
star
::
util
::
DateTime
&
rDateTime
)
{
String
aString
(
String
::
CreateFromInt32
(
rDateTime
.
Year
)
);
aString
+=
'-'
;
rBuffer
.
append
((
sal_Int32
)
rDateTime
.
Year
);
rBuffer
.
append
(
'-'
)
;
if
(
rDateTime
.
Month
<
10
)
aString
+=
'0'
;
aString
+=
String
::
CreateFromInt32
(
rDateTime
.
Month
);
aString
+=
'-'
;
rBuffer
.
append
(
'0'
)
;
rBuffer
.
append
((
sal_Int32
)
rDateTime
.
Month
);
rBuffer
.
append
(
'-'
)
;
if
(
rDateTime
.
Day
<
10
)
aString
+=
'0'
;
aString
+=
String
::
CreateFromInt32
(
rDateTime
.
Day
);
rBuffer
.
append
(
'0'
)
;
rBuffer
.
append
((
sal_Int32
)
rDateTime
.
Day
);
if
(
rDateTime
.
Seconds
!=
0
||
rDateTime
.
Minutes
!=
0
||
rDateTime
.
Hours
!=
0
)
{
aString
+=
'T'
;
rBuffer
.
append
(
'T'
)
;
if
(
rDateTime
.
Hours
<
10
)
aString
+=
'0'
;
aString
+=
String
::
CreateFromInt32
(
rDateTime
.
Hours
);
aString
+=
':'
;
rBuffer
.
append
(
'0'
)
;
rBuffer
.
append
((
sal_Int32
)
rDateTime
.
Hours
);
rBuffer
.
append
(
':'
)
;
if
(
rDateTime
.
Minutes
<
10
)
aString
+=
'0'
;
aString
+=
String
::
CreateFromInt32
(
rDateTime
.
Minutes
);
aString
+=
':'
;
rBuffer
.
append
(
'0'
)
;
rBuffer
.
append
((
sal_Int32
)
rDateTime
.
Minutes
);
rBuffer
.
append
(
':'
)
;
if
(
rDateTime
.
Seconds
<
10
)
aString
+=
'0'
;
aString
+=
String
::
CreateFromInt32
(
rDateTime
.
Seconds
);
rBuffer
.
append
(
'0'
)
;
rBuffer
.
append
((
sal_Int32
)
rDateTime
.
Seconds
);
if
(
rDateTime
.
HundredthSeconds
>
0
)
{
aString
+=
','
;
rBuffer
.
append
(
','
)
;
if
(
rDateTime
.
HundredthSeconds
<
10
)
aString
+=
'0'
;
aString
+=
String
::
CreateFromInt32
(
rDateTime
.
HundredthSeconds
);
rBuffer
.
append
(
'0'
)
;
rBuffer
.
append
((
sal_Int32
)
rDateTime
.
HundredthSeconds
);
}
}
rBuffer
.
append
(
aString
);
}
/** convert ISO Date String to util::DateTime */
...
...
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