fix select hours for 0/12

for hour 12 (local time 14 at UTC+2) the tests fail as it casts to 0 and the `=== '00'` check is not triggered.

see http://ci.cakephp.org/job/CakePHP%202.3%20-%20MySQL/993/ etc