Small mistake in one file - I corrected my local copy so its not an issue for myself - not sure if it is an issue in dev or not, more concearned with making my own module at this point, so I'm not bothering to check or make a patch, but anyways...

in date_api.module, line 266, it is:

$hours[$i] = $i < 10 && $format == 'H' || $format == 'h' ? "0$i" : $i;

which results in a '0' being put before all the values. It should be:

$hours[$i] = $i < 10 && ($format == 'H' || $format == 'h') ? "0$i" : $i;

At least that fixed the problem in my case (format 'h').

Comments

KarenS’s picture

Status: Active » Fixed

Fixed, thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.