adjust date from microseconds to seconds if necessary