Fix error on time creation/update. Now the train alarm has the time as
the number of milliseconds from midnight.