fix the bug of timestamp: seconds in linux, while milliseconds in Java