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.
When using the Calendar view templates on a field set to capture start and end dates, but the use of an end date is *not required*, uninitialised date warnings appear:
Warning: DateTime::getTimezone() [datetime.gettimezone]: The DateTime object has not been correctly initialized by its constructor in DateObject->__construct()
Warning: DateTime::format() [datetime.format]: The DateTime object has not been correctly initialized by its constructor in DateObject->format()
This appears to be caused by the "value2" key being set, but NULL.
Comment | File | Size | Author |
---|---|---|---|
#2 | calendar-empty_end_date-2902201-1-D7.patch | 880 bytes | kq_sb |
Comments
Comment #2
kq_sb CreditAttribution: kq_sb commentedPatch attached to remove warnings.
Comment #3
apadernoComment #4
Neslee Canil Pinto