fixed a couple of typos in the time handling code