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
50403097
Commit
50403097
authored
Mar 01, 2004
by
Rein Klazes
Committed by
Alexandre Julliard
Mar 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In TIME_GetBias make sure there is a cached value for daylight as
well.
parent
4932f560
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
time.c
dlls/ntdll/time.c
+6
-2
No files found.
dlls/ntdll/time.c
View file @
50403097
...
...
@@ -494,15 +494,19 @@ static int TIME_GetBias(time_t utc, int *pdaylight)
struct
tm
*
ptm
;
static
time_t
last_utc
;
static
int
last_bias
;
static
int
last_daylight
;
int
ret
;
RtlEnterCriticalSection
(
&
TIME_GetBias_section
);
if
(
utc
==
last_utc
)
{
*
pdaylight
=
last_daylight
;
ret
=
last_bias
;
else
}
else
{
ptm
=
localtime
(
&
utc
);
*
pdaylight
=
ptm
->
tm_isdst
;
/* daylight for local timezone */
*
pdaylight
=
last_daylight
=
ptm
->
tm_isdst
;
/* daylight for local timezone */
ptm
=
gmtime
(
&
utc
);
ptm
->
tm_isdst
=
*
pdaylight
;
/* use local daylight, not that of Greenwich */
last_utc
=
utc
;
...
...
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