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
8db392f1
Kaydet (Commit)
8db392f1
authored
Tem 05, 2013
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
API change: oslDateTime signed year
Change-Id: Ic4f1e424b130fd2ccca379adbe0a66836b6cac41
üst
e436c491
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
10 deletions
+7
-10
time.h
include/osl/time.h
+1
-1
docprophandler.cxx
oox/source/docprop/docprophandler.cxx
+1
-1
time.c
sal/osl/unx/time.c
+1
-4
DateTimeHelper.cxx
ucb/source/ucp/webdav-neon/DateTimeHelper.cxx
+2
-2
DateTimeHelper.cxx
ucb/source/ucp/webdav/DateTimeHelper.cxx
+2
-2
No files found.
include/osl/time.h
Dosyayı görüntüle @
8db392f1
...
...
@@ -92,7 +92,7 @@ typedef struct _oslDateTime
/*----------------------------------------------------------------------*/
/** is the year.
*/
sal_
u
Int16
Year
;
sal_Int16
Year
;
}
oslDateTime
;
...
...
oox/source/docprop/docprophandler.cxx
Dosyayı görüntüle @
8db392f1
...
...
@@ -98,7 +98,7 @@ util::DateTime OOXMLDocPropHandler::GetDateTimeFromW3CDTF( const OUString& aChar
sal_Int32
nLen
=
aChars
.
getLength
();
if
(
nLen
>=
4
)
{
aOslDTime
.
Year
=
(
sal_
u
Int16
)
aChars
.
copy
(
0
,
4
).
toInt32
();
aOslDTime
.
Year
=
(
sal_Int16
)
aChars
.
copy
(
0
,
4
).
toInt32
();
if
(
nLen
>=
7
&&
aChars
.
getStr
()[
4
]
==
(
sal_Unicode
)
'-'
)
{
...
...
sal/osl/unx/time.c
Dosyayı görüntüle @
8db392f1
...
...
@@ -143,10 +143,7 @@ sal_Bool SAL_CALL osl_getTimeValueFromDateTime( oslDateTime* pDateTime, TimeValu
else
return
sal_False
;
if
(
pDateTime
->
Year
>=
1900
)
aTime
.
tm_year
=
pDateTime
->
Year
-
1900
;
else
return
sal_False
;
aTime
.
tm_year
=
pDateTime
->
Year
-
1900
;
aTime
.
tm_isdst
=
-
1
;
aTime
.
tm_wday
=
0
;
...
...
ucb/source/ucp/webdav-neon/DateTimeHelper.cxx
Dosyayı görüntüle @
8db392f1
...
...
@@ -89,7 +89,7 @@ bool DateTimeHelper::ISO8601_To_DateTime (const OUString& s,
aDateTime
.
Day
=
sal
::
static_int_cast
<
sal_uInt16
>
(
day
);
// 1-31
aDateTime
.
DayOfWeek
=
0
;
// 0-6, 0 = Sunday
aDateTime
.
Month
=
sal
::
static_int_cast
<
sal_uInt16
>
(
month
);
// 1-12
aDateTime
.
Year
=
sal
::
static_int_cast
<
sal_
uInt16
>
(
year
);
aDateTime
.
Year
=
sal
::
static_int_cast
<
sal_
Int16
>
(
year
);
TimeValue
aTimeValue
;
if
(
osl_getTimeValueFromDateTime
(
&
aDateTime
,
&
aTimeValue
)
)
...
...
@@ -206,7 +206,7 @@ bool DateTimeHelper::RFC2068_To_DateTime (const OUString& s,
aDateTime
.
DayOfWeek
=
0
;
//dayofweek; // 0-6, 0 = Sunday
aDateTime
.
Month
=
sal
::
static_int_cast
<
sal_uInt16
>
(
month
);
// 1-12
aDateTime
.
Year
=
sal
::
static_int_cast
<
sal_
uInt16
>
(
year
);
aDateTime
.
Year
=
sal
::
static_int_cast
<
sal_
Int16
>
(
year
);
TimeValue
aTimeValue
;
if
(
osl_getTimeValueFromDateTime
(
&
aDateTime
,
...
...
ucb/source/ucp/webdav/DateTimeHelper.cxx
Dosyayı görüntüle @
8db392f1
...
...
@@ -79,7 +79,7 @@ bool DateTimeHelper::ISO8601_To_DateTime (const OUString& s,
aDateTime
.
Day
=
sal
::
static_int_cast
<
sal_uInt16
>
(
day
);
// 1-31
aDateTime
.
DayOfWeek
=
0
;
// 0-6, 0 = Sunday
aDateTime
.
Month
=
sal
::
static_int_cast
<
sal_uInt16
>
(
month
);
// 1-12
aDateTime
.
Year
=
sal
::
static_int_cast
<
sal_
uInt16
>
(
year
);
aDateTime
.
Year
=
sal
::
static_int_cast
<
sal_
Int16
>
(
year
);
TimeValue
aTimeValue
;
if
(
osl_getTimeValueFromDateTime
(
&
aDateTime
,
&
aTimeValue
)
)
...
...
@@ -218,7 +218,7 @@ bool DateTimeHelper::RFC2068_To_DateTime (const OUString& s,
aDateTime
.
DayOfWeek
=
0
;
//dayofweek; // 0-6, 0 = Sunday
aDateTime
.
Month
=
sal
::
static_int_cast
<
sal_uInt16
>
(
month
);
// 1-12
aDateTime
.
Year
=
sal
::
static_int_cast
<
sal_
uInt16
>
(
year
);
aDateTime
.
Year
=
sal
::
static_int_cast
<
sal_
Int16
>
(
year
);
TimeValue
aTimeValue
;
if
(
osl_getTimeValueFromDateTime
(
&
aDateTime
,
...
...
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