We set up Partial Date to handle a field first with a single date and then with a date range. The following error message arose in both cases regardless of whether the field was set to use no time zone conversion or used the user's time zone or the site's time zone and regardless of whether the user was given the option to choose the time zone or not.
Notice: Undefined index: timezone in _partial_date_field_widget_form() (line 568 of /[SITEROOT]/sites/all/modules/partial_date/partial_date.admin.inc).
Notice: Undefined index: timezone in _partial_date_field_widget_form() (line 594 of /[SITEROOT]/sites/all/modules/partial_date/partial_date.admin.inc).
The above is with a date range. With a single date, only the warning message referring to line 568 arose.
The aim is to have a field to display the daily opening hours of various places. Partial Date was tried as a solution because Date module didn't allow unchecking the year as part of the field. This error message is one of the two bugs that were encountered. I will report the other separately.
Comments
Comment #1
alan d. commentedThere is a module office hours or something like that which may better serve your use case.
I'll try and find some time to look into this. I can see a number of notices that could be triggered from the code, the joy of juggling 25 separate fields....
Comment #2
Daedalon commentedThank you Alan for the quick reply and the module tip. The Office Hours module is indeed created for this very purpose. The downside is that 7.x version is still in dev only with no alpha to try.
Comment #3
alan d. commentedShame, as that would have been the perfect solution. Anyways, the notices should be gone in the next release.