fix date from ms to s