16
NXPTM M522XX, KINETIS and i.MX RT / Present Time
« on: September 01, 2007, 03:40:44 AM »
The "Present Time" box of the "µTasker - administration" side web page <.../5admin.htm> doesn't display the current time unless both USE_TIME_SERVER and SUPPORT_LCD constants have been defined. You need SUPPORT_LCD even if you don't have an LCD attached.
The time shown (in the summer) is the time in London, not UT (a.k.a. GMT). In the winter, I guess the time shown would be the time in Switzerland. In any case, to set the time to Eastern Daylight Time (my local time, five hours behind London), I've added two lines to application.c:
#define TIMEZONE (-5*60*60)
near where REL_9_1_2007 is defined (though it should probably be in config.h) and added
ulPresentTime += TIMEZONE;
just after the line
ulPresentTime -= REL_9_1_2007; // relative to 0:0:0 on 9.1.2007
Best regards,
Richard
The time shown (in the summer) is the time in London, not UT (a.k.a. GMT). In the winter, I guess the time shown would be the time in Switzerland. In any case, to set the time to Eastern Daylight Time (my local time, five hours behind London), I've added two lines to application.c:
#define TIMEZONE (-5*60*60)
near where REL_9_1_2007 is defined (though it should probably be in config.h) and added
ulPresentTime += TIMEZONE;
just after the line
ulPresentTime -= REL_9_1_2007; // relative to 0:0:0 on 9.1.2007
Best regards,
Richard