Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
time.c
dlls/kernel/time.c
+9
-9
No files found.
dlls/kernel/time.c
View file @
6a7d463c
...
...
@@ -296,7 +296,7 @@ static BOOL _GetTimezoneBias(
LONG
*
pBias
)
/* [out] The calulated bias in minutes */
{
int
ret
;
BOOL
before
daylightsaving
,
afterdaylightsaving
;
BOOL
before
StandardDate
,
afterDaylightDate
;
BOOL
daylightsaving
=
FALSE
;
LONG
bias
=
lpTimeZoneInformation
->
Bias
;
...
...
@@ -313,19 +313,19 @@ static BOOL _GetTimezoneBias(
}
/* check for daylight saving */
ret
=
_DayLightCompareDate
(
lpSystemTime
,
&
lpTimeZoneInformation
->
StandardDate
);
if
(
ret
==
-
2
)
ret
=
_DayLightCompareDate
(
lpSystemTime
,
&
lpTimeZoneInformation
->
StandardDate
);
if
(
ret
==
-
2
)
return
FALSE
;
before
daylightsaving
=
ret
<
0
;
before
StandardDate
=
ret
<
0
;
_DayLightCompareDate
(
lpSystemTime
,
&
lpTimeZoneInformation
->
DaylightDate
);
if
(
ret
==
-
2
)
ret
=
_DayLightCompareDate
(
lpSystemTime
,
&
lpTimeZoneInformation
->
DaylightDate
);
if
(
ret
==
-
2
)
return
FALSE
;
after
daylightsaving
=
ret
>=
0
;
after
DaylightDate
=
ret
>=
0
;
if
(
!
beforedaylightsaving
&&
!
afterdaylightsaving
)
if
(
beforeStandardDate
&&
afterDaylightDate
)
daylightsaving
=
TRUE
;
}
...
...
@@ -426,7 +426,7 @@ BOOL WINAPI TzSpecificLocalTimeToSystemTime(
t
<<=
32
;
t
+=
(
UINT
)
ft
.
dwLowDateTime
;
if
(
!
_GetTimezoneBias
(
&
tzinfo
,
lp
Univers
alTime
,
&
lBias
))
if
(
!
_GetTimezoneBias
(
&
tzinfo
,
lp
Loc
alTime
,
&
lBias
))
return
FALSE
;
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