fix a bug of os.date