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
2ce96b45
Commit
2ce96b45
authored
Mar 03, 2004
by
Rein Klazes
Committed by
Alexandre Julliard
Mar 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented GetDaylightFlag.
parent
589e1152
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
kernel32.spec
dlls/kernel/kernel32.spec
+1
-1
time.c
dlls/kernel/time.c
+16
-0
No files found.
dlls/kernel/kernel32.spec
View file @
2ce96b45
...
@@ -381,7 +381,7 @@
...
@@ -381,7 +381,7 @@
@ stdcall GetCurrentThreadId()
@ stdcall GetCurrentThreadId()
@ stdcall GetDateFormatA(long long ptr str ptr long)
@ stdcall GetDateFormatA(long long ptr str ptr long)
@ stdcall GetDateFormatW(long long ptr wstr ptr long)
@ stdcall GetDateFormatW(long long ptr wstr ptr long)
@ st
ub GetDaylightFlag
@ st
dcall GetDaylightFlag()
@ stdcall GetDefaultCommConfigA(str ptr long)
@ stdcall GetDefaultCommConfigA(str ptr long)
@ stdcall GetDefaultCommConfigW(wstr ptr long)
@ stdcall GetDefaultCommConfigW(wstr ptr long)
@ stub GetDefaultSortkeySize
@ stub GetDefaultSortkeySize
...
...
dlls/kernel/time.c
View file @
2ce96b45
...
@@ -155,6 +155,7 @@ BOOL WINAPI SetSystemTimeAdjustment(
...
@@ -155,6 +155,7 @@ BOOL WINAPI SetSystemTimeAdjustment(
* RETURNS
* RETURNS
* Success: TIME_ZONE_ID_STANDARD. tzinfo contains the time zone info.
* Success: TIME_ZONE_ID_STANDARD. tzinfo contains the time zone info.
* Failure: TIME_ZONE_ID_INVALID.
* Failure: TIME_ZONE_ID_INVALID.
* FIXME: return TIME_ZONE_ID_DAYLIGHT when daylight saving is on.
*/
*/
DWORD
WINAPI
GetTimeZoneInformation
(
DWORD
WINAPI
GetTimeZoneInformation
(
LPTIME_ZONE_INFORMATION
tzinfo
)
/* [out] Destination for time zone information */
LPTIME_ZONE_INFORMATION
tzinfo
)
/* [out] Destination for time zone information */
...
@@ -871,3 +872,18 @@ VOID WINAPI GetSystemTime(LPSYSTEMTIME systime) /* [O] Destination for current t
...
@@ -871,3 +872,18 @@ VOID WINAPI GetSystemTime(LPSYSTEMTIME systime) /* [O] Destination for current t
ft
.
dwHighDateTime
=
t
.
u
.
HighPart
;
ft
.
dwHighDateTime
=
t
.
u
.
HighPart
;
FileTimeToSystemTime
(
&
ft
,
systime
);
FileTimeToSystemTime
(
&
ft
,
systime
);
}
}
/*********************************************************************
* GetDaylightFlag (KERNEL32.@)
*
* returns TRUE if daylight saving time is in operation
*
* Note: this function is called from the Win98's control applet
* timedate.cpl
*/
BOOL
WINAPI
GetDaylightFlag
(
void
)
{
time_t
t
=
time
(
NULL
);
struct
tm
*
ptm
=
localtime
(
&
t
);
return
ptm
->
tm_isdst
>
0
;
}
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