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.

CommentFileSizeAuthor
#2 calendar-empty_end_date-2902201-1-D7.patch880 byteskq_sb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kq_sb created an issue. See original summary.

kq_sb’s picture

Patch attached to remove warnings.

apaderno’s picture

Version: 7.x-3.5 » 7.x-3.x-dev
Status: Active » Needs review
Neslee Canil Pinto’s picture

Status: Needs review » Closed (won't fix)