Browse Source

Always use date('H') to check hour values.

Refs #3309
mark_story 12 years ago
parent
commit
d35bed2543
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/View/Helper/FormHelperTest.php

+ 2 - 2
tests/TestCase/View/Helper/FormHelperTest.php

@@ -4097,8 +4097,8 @@ class FormHelperTest extends TestCase {
 
 			array('select' => array('name' => 'Contact[date][hour]')),
 			$hoursRegex,
-			array('option' => array('value' => date('h', $now), 'selected' => 'selected')),
-			date('g', $now),
+			array('option' => array('value' => date('H', $now), 'selected' => 'selected')),
+			date('H', $now),
 			'/option',
 			'*/select',