Module works great unless there is no end date with the module optional_end_date. This will also be the behavior for 8.6 per https://www.drupal.org/project/drupal/issues/2794481.
Module works great unless there is no end date with the module optional_end_date. This will also be the behavior for 8.6 per https://www.drupal.org/project/drupal/issues/2794481.
Comments
Comment #2
john.money commentedComment #3
john.money commentedAdded patch.
Comment #4
dan_metille commentedThe patch fails on version 3.1 but applied ok on the dev version.
Comment #5
lias commentedPatch worked against 3x dev version for me as well.
Comment #6
brianfisher commentedworks for me too
Comment #7
maryluellyn commentedPatch works for my site on 3.x-dev
Thank you!
Comment #8
peterhebert commentedUploading similar patch to #3, but for for 9.0.x branch for Drupal 9.
Comment #9
pameeela commentedWithout the patch, the date does not display at all. Using the patch in #3, I am getting this when there is no end date:
Comment #10
pameeela commentedAttached patch works for optional end dates that include a time.
Comment #11
quentin massez commentedHi everyone and thank for the patch !
The patch for 9.0.x in #8 didn't work for me.
Here's the patch I used that solved this issue.
Comment #12
netsliverAdd compatibility with date_all_day
Comment #13
netsliverAdd compatibility with date_all_day and all day on all format
Comment #14
paul_serval commentedPatch #13 + D9 compatibility
Comment #15
jaime@gingerrobot.com commentedI've noticed we need some documentation for this module too. The default settings in the module are ignored as even if getSetting does merge with default it will only add new keys to the array. Anything that already exists preferences the settings we already have.
The documentation should include something about going into the display field settings and setting up the date formats so they are primary ones it uses.
Anyway here's an update to patch from #10 to use Drupal 9 functions and the D9 branch.
Comment #16
jaime@gingerrobot.com commentedUpdated to make sure if there is no date or if end date equals start date then use single format.
Comment #17
jaime@gingerrobot.com commentedThere was an error with my last patch where it didn't check if the delta key existed before operating on the array. Fixed that.
Comment #18
villette commentedPath in #17 works great with latest version, I'm moving this to RTBC
Comment #20
sudishth commented