fix time pattern