 
 final class DateTimeGridViewDataSource: NSObject, GridViewDataSource, GridViewDelegate {
 	var tableGridView: GridView!
-	var refreshedTime: Date!
+	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 isEnabled ? 24*10 : 0

	func gridView(_ gridView: GridView, cellForRowAt indexPath: IndexPath) -> GridViewCell {
		let cell = gridView.dequeueReusableCell(withReuseIdentifier: "TimeItemGridViewCell", for: indexPath)
		if let cell = cell as? TimeItemGridViewCell {
			cell.setCellEntities((indexPath.row + refreshedTime.hour + 23) % 24)
		}
		return cell
	}

	func scrollViewDidScroll(_ scrollView: UIScrollView) {
		tableGridView.scrollViewDidScroll(scrollView)
	}
}


import G3GridView
import Crashlytics
import StatusAlert
import PKHUD

class GuideViewController: UIViewController {
	// MARK: - IBOutlets
