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
a188662e
Commit
a188662e
authored
Jul 29, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add some traces to make debugging time zone related problems easier.
parent
ae271f27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
time.c
dlls/ntdll/time.c
+9
-2
No files found.
dlls/ntdll/time.c
View file @
a188662e
...
...
@@ -27,6 +27,7 @@
#include <stdarg.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <limits.h>
#include <time.h>
...
...
@@ -881,7 +882,10 @@ static const WCHAR* TIME_GetTZAsStr (time_t utc, int bias, int dst)
unsigned
int
i
;
if
(
!
strftime
(
psTZName
,
7
,
"%Z"
,
ptm
))
return
(
NULL
);
{
WARN
(
"strftime error %d
\n
"
,
errno
);
return
NULL
;
}
for
(
i
=
0
;
i
<
(
sizeof
(
TZ_INFO
)
/
sizeof
(
struct
tagTZ_INFO
));
i
++
)
{
...
...
@@ -975,10 +979,13 @@ NTSTATUS WINAPI RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION *tzinfo)
memset
(
tzinfo
,
0
,
sizeof
(
RTL_TIME_ZONE_INFORMATION
));
if
(
!
TIME_GetTimeZoneInfoFromReg
(
tzinfo
))
{
if
(
!
TIME_GetTimeZoneInfoFromReg
(
tzinfo
))
{
WARN
(
"TIME_GetTimeZoneInfoFromReg failed
\n
"
);
gmt
=
time
(
NULL
);
bias
=
TIME_GetBias
(
gmt
,
&
daylight
);
TRACE
(
"bias %d, daylight %d
\n
"
,
-
bias
/
60
,
daylight
);
tzinfo
->
Bias
=
-
bias
/
60
;
tzinfo
->
StandardBias
=
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