Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
KarenS CreditAttribution: KarenS commentedFixed, thanks!
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.