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.
In date_is_all_day(), if $granularity is 'hour', 'minute', or 'second', it will return FALSE. It seems to me that if the granularity is day, month, or year, it ought to return TRUE because the date must be all day if the granularity does not include time information. Am I misunderstanding something or is there a bug here?
Comments
Comment #2
Liam MorlandPerhaps date_is_all_day() should return TRUE for values less granular than 'hour'. Making this change does not cause any test failures in MySQL. Failures in SQLite and Postgres are in the branch result.
Comment #3
ebremner CreditAttribution: ebremner at University of Waterloo commentedReviewed the code and makes sense for this change.
Comment #5
DamienMcKennaCommitted. Thanks.