Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.