There seems to be a bug in the system time string (only 24h format):
The command GUI.getDisplayTime() will return a string, as it is shown in the display.
The command
GUI.getDisplayTime().substring(0,2)
returns the first two digits as a string.
If you want to convert this string to an interger the command
parseInt(GUI.getDisplayTime().substring(0,2))
will return
6 at 06:xx
7 at 07:xx
0 at 08:xx (which is not correct)
0 at 09:xx (which is not correct)
10 at 10:xx
As a workaround, the command
parseInt(GUI.getDisplayTime().substring(2,1))
returns always the correct second digit.
I used:
PEP2 newest release
Newest Firmware
9600 and 9400 same behaviour
Last edited by multimedia on November 9, 2009 06:36.