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
1d9fa06a
Commit
1d9fa06a
authored
Nov 12, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Trace the timezone being used.
parent
466de4f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
time.c
dlls/msvcrt/tests/time.c
+5
-0
No files found.
dlls/msvcrt/tests/time.c
View file @
1d9fa06a
...
...
@@ -20,6 +20,7 @@
#include "wine/test.h"
#include "winbase.h"
#include "winnls.h"
#include "time.h"
#include <stdlib.h>
/*setenv*/
...
...
@@ -63,9 +64,13 @@ static void test_mktime(void)
struct
tm
my_tm
,
sav_tm
;
time_t
nulltime
,
local_time
;
char
TZ_env
[
256
];
char
buffer
[
64
];
int
secs
;
ok
(
res
!=
TIME_ZONE_ID_INVALID
,
"GetTimeZoneInformation failed
\n
"
);
WideCharToMultiByte
(
CP_ACP
,
0
,
tzinfo
.
StandardName
,
-
1
,
buffer
,
sizeof
(
buffer
),
NULL
,
NULL
);
trace
(
"bias %d std %d dst %d zone %s
\n
"
,
tzinfo
.
Bias
,
tzinfo
.
StandardBias
,
tzinfo
.
DaylightBias
,
buffer
);
/* Bias may be positive or negative, to use offset of one day */
secs
=
SECSPERDAY
-
tzinfo
.
Bias
*
SECSPERMIN
;
my_tm
.
tm_mday
=
1
+
secs
/
SECSPERDAY
;
...
...
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