Fix output of seconds in datetime().