replace the time writing way