Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
6a7d463c
Commit
6a7d463c
authored
21 years ago
by
Martin Fuchs
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for SystemTimeToTzSpecificLocalTime() and
TzSpecificLocalTimeToSystemTime().
parent
3f7c3ff7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/kernel/time.c
+9
-9
9 additions, 9 deletions
dlls/kernel/time.c
with
9 additions
and
9 deletions
dlls/kernel/time.c
+
9
−
9
View file @
6a7d463c
...
...
@@ -296,7 +296,7 @@ static BOOL _GetTimezoneBias(
LONG
*
pBias
)
/* [out] The calulated bias in minutes */
{
int
ret
;
BOOL
before
daylightsaving
,
after
d
aylight
saving
;
BOOL
before
StandardDate
,
after
D
aylight
Date
;
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
d
aylight
saving
=
ret
>=
0
;
after
D
aylight
Date
=
ret
>=
0
;
if
(
!
before
daylightsaving
&&
!
after
d
aylight
saving
)
if
(
before
StandardDate
&&
after
D
aylight
Date
)
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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment