[time] Update the timestamp from ms to s

Fix #498