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
874b8a3e
Commit
874b8a3e
authored
Jun 12, 1999
by
Rein Klazes
Committed by
Alexandre Julliard
Jun 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected a problem in GetTimeZoneInformation() due a change to
mktime() in glibc-2.1.1 when daylight saving time is in effect.
parent
e22a4e57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
time.c
win32/time.c
+9
-1
No files found.
win32/time.c
View file @
874b8a3e
...
...
@@ -103,11 +103,19 @@ BOOL WINAPI SetSystemTime(const SYSTEMTIME *systime)
DWORD
WINAPI
GetTimeZoneInformation
(
LPTIME_ZONE_INFORMATION
tzinfo
)
{
time_t
gmt
,
lt
;
struct
tm
*
ptm
;
int
daylight
;
memset
(
tzinfo
,
0
,
sizeof
(
TIME_ZONE_INFORMATION
));
gmt
=
time
(
NULL
);
lt
=
mktime
(
gmtime
(
&
gmt
));
ptm
=
localtime
(
&
gmt
);
daylight
=
ptm
->
tm_isdst
;
ptm
=
gmtime
(
&
gmt
);
ptm
->
tm_isdst
=
daylight
;
lt
=
mktime
(
ptm
);
tzinfo
->
Bias
=
(
lt
-
gmt
)
/
60
;
tzinfo
->
StandardBias
=
0
;
tzinfo
->
DaylightBias
=
-
60
;
...
...
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