fix some bug

fix some bug of log time and make fail on some system platform