fix time bug in unix os