Fixed the method of saving data for the hour view.