mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
tz command fixed (info class 44).
svn path=/trunk/; revision=1519
This commit is contained in:
parent
01531797b4
commit
a04660d2b0
1 changed files with 9 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: qsi.c,v 1.5 2001/01/14 19:59:43 ea Exp $
|
/* $Id: qsi.c,v 1.6 2001/01/14 20:16:37 ea Exp $
|
||||||
*
|
*
|
||||||
* PROJECT : ReactOS Operating System (see http://www.reactos.com/)
|
* PROJECT : ReactOS Operating System (see http://www.reactos.com/)
|
||||||
* DESCRIPTION: Tool to query system information
|
* DESCRIPTION: Tool to query system information
|
||||||
|
@ -1964,14 +1964,13 @@ CMD_NOT_IMPLEMENTED
|
||||||
*/
|
*/
|
||||||
CMD_DEF(44)
|
CMD_DEF(44)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
TIME_ZONE_INFORMATION Tzi;
|
SYSTEM_TIME_ZONE_INFORMATION Tzi;
|
||||||
WCHAR Name [33];
|
WCHAR Name [33];
|
||||||
|
|
||||||
RtlZeroMemory (& Tzi, sizeof Tzi);
|
RtlZeroMemory (& Tzi, sizeof Tzi);
|
||||||
Status = NtQuerySystemInformation(
|
Status = NtQuerySystemInformation(
|
||||||
SystemTimeZoneInformation,
|
44,
|
||||||
& Tzi,
|
& Tzi,
|
||||||
sizeof Tzi,
|
sizeof Tzi,
|
||||||
0
|
0
|
||||||
|
@ -1982,15 +1981,11 @@ CMD_DEF(44)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
printf (
|
printf (
|
||||||
"12h/24h.....: %dh\n",
|
" Bias........: %d'\n",
|
||||||
0 /* FIXME: */
|
|
||||||
);
|
|
||||||
printf (
|
|
||||||
"Bias........: %d'\n",
|
|
||||||
Tzi.Bias /* LONG */
|
Tzi.Bias /* LONG */
|
||||||
);
|
);
|
||||||
|
|
||||||
printf ("Standard\n");
|
printf (" Standard\n");
|
||||||
RtlZeroMemory (
|
RtlZeroMemory (
|
||||||
(PVOID) Name,
|
(PVOID) Name,
|
||||||
sizeof Name
|
sizeof Name
|
||||||
|
@ -2007,14 +2002,14 @@ CMD_DEF(44)
|
||||||
|
|
||||||
PrintUtcDateTime (
|
PrintUtcDateTime (
|
||||||
"\tDate: %s\n",
|
"\tDate: %s\n",
|
||||||
& Tzi.StandardDate /* SYSTEMTIME */
|
(PTIME) & Tzi.StandardDate /* SYSTEMTIME */
|
||||||
);
|
);
|
||||||
|
|
||||||
printf ("\tBias: %d'\n",
|
printf ("\tBias: %d'\n",
|
||||||
Tzi.StandardBias /* LONG */
|
Tzi.StandardBias /* LONG */
|
||||||
);
|
);
|
||||||
|
|
||||||
printf ("Daylight\n");
|
printf (" Daylight\n");
|
||||||
RtlZeroMemory (
|
RtlZeroMemory (
|
||||||
(PVOID) Name,
|
(PVOID) Name,
|
||||||
sizeof Name
|
sizeof Name
|
||||||
|
@ -2031,14 +2026,14 @@ CMD_DEF(44)
|
||||||
|
|
||||||
PrintUtcDateTime (
|
PrintUtcDateTime (
|
||||||
"\tDate: %s\n",
|
"\tDate: %s\n",
|
||||||
& Tzi.DaylightDate /* SYSTEMTIME */
|
(PTIME) & Tzi.DaylightDate /* SYSTEMTIME */
|
||||||
);
|
);
|
||||||
|
|
||||||
printf (
|
printf (
|
||||||
"\tBias: %d'\n",
|
"\tBias: %d'\n",
|
||||||
Tzi.DaylightBias /* LONG */
|
Tzi.DaylightBias /* LONG */
|
||||||
);
|
);
|
||||||
#endif
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue