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.
A common use-case is to display a view of nodes with date fields and show the time hence for the end date only (and not the start date). Currently this is not possible, as any "time hence" selection in the views field configuration will always show "time hence" relation between now and the start date. There does not seem to be a way to show time hence/ago from the end date.
Please correct me if there is a way to do this, or if this issue is a duplicate.
Comments
Comment #1
brodhagen CreditAttribution: brodhagen commentedhttps://drupal.org/node/2026545
This patch worked for displaying time ago from the End Date.
Comment #2
marksmith CreditAttribution: marksmith commentedThis is still a problem in the 7.x-2.10 version. Checking the "Use the End date, instead of the start date" does not work.
Comment #3
marksmith CreditAttribution: marksmith commentedFor those looking for a solution, the node mentioned by #brodhagen provided the necessary patch to the date module (see comment #9). The patch was essentially applied to version 7.x-2.10 of the module, except for the date.theme file:
It works as expected after making these changes.
Comment #4
marksmith CreditAttribution: marksmith commentedComment #5
marksmith CreditAttribution: marksmith commentedSolution not working, if Aggregation is used in views!