Problem/Motivation/Steps to reproduce

When the dependent Datetime field is configured to use the datetime_type: date (i.e. not datetime_type: datetime),
the module's current code fails with a IcalTimezoneInvalidTimestampException.

As a result, after saving the respective entity, there is no generated ics file.

Proposed resolution

Make the code more robust by covering the case where the dependent Datetime field may be configured to use dates without times.

Remaining tasks

Write a test covering this case.
Update the code to cover the new test case.

Issue fork ics_field-2924791

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

SocialNicheGuru created an issue. See original summary.

LeGront’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new924 bytes

Here the patch for date without time.

Status: Needs review » Needs work

The last submitted patch, 2: ics_field-fix-date-without-time-2924791-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

iyyappan.govind’s picture

Good work!

stefanos.petrakis’s picture

Assigned: Unassigned » stefanos.petrakis
Status: Needs work » Active

I am going to pick this up.

First I will try to figure out what the OP was going for, from the provided patch #2.

And update the issue's Description accordinglay

stefanos.petrakis’s picture

Issue summary: View changes
stefanos.petrakis’s picture

Title: Nothing shows up » IcalTimezoneInvalidTimestampException for Datetime field without time

stefanos.petrakis’s picture

Status: Active » Needs review

So, this one is now complete, a new test case for capturing the reported problem, as well more or less applying the solution from #2.

Reviews are very welcome.

stefanos.petrakis’s picture

Status: Needs review » Fixed

I am going to merge this, it is a small but quite annoying piece of missing functionality.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.