 	var refreshedTime: Date! {
 		didSet {
 			currentDate = refreshedTime
-			currentHour = hour % 24
 		}
 	}
 	private var isEnabled: Bool {
 		return refreshedTime != nil
 	}
-	private var hour: Int {
-		return refreshedTime.hour + 23
-	}
-	private var currentHour = 0
 	private var currentDate: Date!
 
 	func gridView(_ gridView: GridView, numberOfRowsInColumn column: Int) -> Int {

			return
		}
		let indexPath = gridView.indexPathForRow(at: CGPoint(x: 0, y: gridView.contentOffset.y))
		let indexHour = (indexPath.row + hour) % 24
		if indexHour != currentHour {
			PKHUD.sharedHUD.dimsBackground = false
			if currentHour == 23 && indexHour == 0 {
				currentDate = currentDate.add(components: [.day: 1])
				HUD.flash(.label(currentDate.string(dateStyle: .short, timeStyle: .none)))
			} else if currentHour == 0 && indexHour == 23 {
				currentDate = currentDate.add(components: [.day: -1])
				HUD.flash(.label(currentDate.string(dateStyle: .short, timeStyle: .none)))
			}
			PKHUD.sharedHUD.dimsBackground = true
		}
		currentHour = indexHour
	}
}


					titleView?.button.label.text = self.title!
					let indexPath = IndexPath(row: index*24, column: 0)
					self.timeGridView.scrollToRow(at: indexPath)
				}
				self.navigationItem.titleView = titleView
			}
