fixed save hour bug and formatted file.