avoid NaN when time is not yet known
write some useful error info to the console