I think I’ve found an inconsistency in ej.bon.Timer.
Timer provides several methods to schedule a task such as:
Timer.schedule(TimerTask, long delay) and Timer.schedule(TimerTask, Date aDate)
However, since the ej.bon.Timer is based on the platform time and not on system time, it can’t know the date.
That is, when I build a Date from a Calendar, my reference time is the system time (since epoch).
But when I schedule the TimerTask based on this date, it will take a long time to execute since the timer gets the Date.getTime (based on epoch) and schedule it based on the platform time (based on startup time).
NB: on my platform, on EMB the platform time is based on startup time; on SIM the platform time seems to be the current time.
It’s still a bit fuzzy in my head, I may have wrongly interpreted what I observed, but overall, I think the Timer.schedule(TimerTask, Date) should either not exist or do the conversion (assuming the platform knows about epoch).
Am I missing something?