When editing and previewing a node, a minutes value below 10 is not given a leading zero in the preview. 12:00 becomes "12:0", 12:01 becomes "12:1", etc.

The attached patch pads the minutes value in case 'i' of event_format_date, but I do not know if this is the appropriate place for the patch.

This can also be fixed by rewriting explode_date and implode_date to pad everything, but that makes the functions look uglier.

CommentFileSizeAuthor
event_pad_minutes[1].diff410 bytesdturover

Comments

killes@www.drop.org’s picture

Status: Needs review » Fixed

thanks!

Status: Fixed » Closed (fixed)

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