Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6a7d463c
Commit
6a7d463c
authored
Apr 17, 2003
by
Martin Fuchs
Committed by
Alexandre Julliard
Apr 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for SystemTimeToTzSpecificLocalTime() and
TzSpecificLocalTimeToSystemTime().
parent
3f7c3ff7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
time.c
dlls/kernel/time.c
+6
-6
No files found.
dlls/kernel/time.c
View file @
6a7d463c
...
@@ -296,7 +296,7 @@ static BOOL _GetTimezoneBias(
...
@@ -296,7 +296,7 @@ static BOOL _GetTimezoneBias(
LONG
*
pBias
)
/* [out] The calulated bias in minutes */
LONG
*
pBias
)
/* [out] The calulated bias in minutes */
{
{
int
ret
;
int
ret
;
BOOL
before
daylightsaving
,
afterdaylightsaving
;
BOOL
before
StandardDate
,
afterDaylightDate
;
BOOL
daylightsaving
=
FALSE
;
BOOL
daylightsaving
=
FALSE
;
LONG
bias
=
lpTimeZoneInformation
->
Bias
;
LONG
bias
=
lpTimeZoneInformation
->
Bias
;
...
@@ -317,15 +317,15 @@ static BOOL _GetTimezoneBias(
...
@@ -317,15 +317,15 @@ static BOOL _GetTimezoneBias(
if
(
ret
==
-
2
)
if
(
ret
==
-
2
)
return
FALSE
;
return
FALSE
;
before
daylightsaving
=
ret
<
0
;
before
StandardDate
=
ret
<
0
;
_DayLightCompareDate
(
lpSystemTime
,
&
lpTimeZoneInformation
->
DaylightDate
);
ret
=
_DayLightCompareDate
(
lpSystemTime
,
&
lpTimeZoneInformation
->
DaylightDate
);
if
(
ret
==
-
2
)
if
(
ret
==
-
2
)
return
FALSE
;
return
FALSE
;
after
daylightsaving
=
ret
>=
0
;
after
DaylightDate
=
ret
>=
0
;
if
(
!
beforedaylightsaving
&&
!
afterdaylightsaving
)
if
(
beforeStandardDate
&&
afterDaylightDate
)
daylightsaving
=
TRUE
;
daylightsaving
=
TRUE
;
}
}
...
@@ -426,7 +426,7 @@ BOOL WINAPI TzSpecificLocalTimeToSystemTime(
...
@@ -426,7 +426,7 @@ BOOL WINAPI TzSpecificLocalTimeToSystemTime(
t
<<=
32
;
t
<<=
32
;
t
+=
(
UINT
)
ft
.
dwLowDateTime
;
t
+=
(
UINT
)
ft
.
dwLowDateTime
;
if
(
!
_GetTimezoneBias
(
&
tzinfo
,
lp
Univers
alTime
,
&
lBias
))
if
(
!
_GetTimezoneBias
(
&
tzinfo
,
lp
Loc
alTime
,
&
lBias
))
return
FALSE
;
return
FALSE
;
bias
=
(
LONGLONG
)
lBias
*
600000000
;
/* 60 seconds per minute, 100000 [100-nanoseconds-ticks] per second */
bias
=
(
LONGLONG
)
lBias
*
600000000
;
/* 60 seconds per minute, 100000 [100-nanoseconds-ticks] per second */
...
...
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