move time to str to utils