Fix some warnings in timekeeping

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>