Skip to content
Snippets Groups Projects
Commit 57f62744 authored by rswindell's avatar rswindell
Browse files

use xpTimeZone_local() to get the current timezone. <sigh>

parent 81aeb17c
Branches
Tags
No related merge requests found
......@@ -10,14 +10,7 @@
#include <ctype.h>
#define USE_SNPRINTF /* we don't need safe_snprintf for this project */
#include "genwrap.h"
#if !defined(__unix__)
#define TIMEZONE _timezone
#define DAYLIGHT _daylight
#else
#define TIMEZONE timezone
#define DAYLIGHT daylight
#endif
#include "datewrap.h"
/****************************************************************************/
/* Converts a date string in format MM/DD/YY into unix time format */
......@@ -87,8 +80,7 @@ int main(int argc, char **argv)
}
tzset();
printf("timezone=%d\n", TIMEZONE);
printf("daylight=%d\n", DAYLIGHT);
printf("Current timezone: %d\n", xpTimeZone_local());
printf("\n");
if(argc>argn && argv[argn][2]=='/') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment