some code fix
revert to use time string