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.
Problem/Motivation
When choosing minutes to include, 0:00 is not generated.
For example:
To create appointment times every 15 minutes beginning at 9am. One would select minutes to include of :00 / :15 / :30 / :45
However this does not display 9:00 / 9:15 / 9:30 /9:45 as expected, because the 9:00 appointment has not been generated.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | smart_date-zero_values-3176352-2.patch | 1.31 KB | mandclu |
Comments
Comment #2
mandclu CreditAttribution: mandclu at Northern Commerce commentedThanks for identifying this. Turns out it also impacts the "zero" hour too. Part of the fun of working with a loosely typed language like PHP is being able to tell the difference between zero and null. Fortunately, the recurr library accepts left-padded single digits (e.g. 00, 01, etc) so this turned out to be an easy way to fix this.
Please test this patch and let me know if it resolves the issue for you.
Comment #3
MrPaulDriver CreditAttribution: MrPaulDriver commentedThat's a fix
Comment #5
mandclu CreditAttribution: mandclu at Northern Commerce commentedGreat! Merged in.