hour() is not the current time. It's the time stamp of the current bar.

For the current time, use hour(NOW).