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.
Within the TimestampAgoFormatter class the settingsForm has incorrect variable names for the future_format and past_format fields.
Comment | File | Size | Author |
---|---|---|---|
#8 | 2867248-8-fix-incorrect-variable-names.patch | 1.1 KB | xSDx |
#5 | 2867248-fix-incorrect-variable-names.patch | 3.62 KB | xSDx |
0001-Fix-incorrect-variable-name.patch | 1.12 KB | JaceRider | |
Comments
Comment #3
himanshu-dixit CreditAttribution: himanshu-dixit as a volunteer and at Google Summer of Code commentedComment #5
xSDx CreditAttribution: xSDx at Websolutions Agency commentedPushing patch for future and past format for time ago formatter also rewriting summary, replacing deprecated functions in formating timestamp. this also should solve https://www.drupal.org/node/2427195
Comment #6
xSDx CreditAttribution: xSDx at Websolutions Agency commentedComment #7
mpdonadioThanks. We really need to scope this to just fix the bug, and not other things, too. So, let's just fix the settings form here.
This is out of scope, but this is not a correct change. This needs to return a render array fragment to propagate the cache data from the date formatter.
Comment #8
xSDx CreditAttribution: xSDx at Websolutions Agency commented@mpdonadio
Pushing patch just for settings form.
Summary will then be fixed in https://www.drupal.org/node/2686409
Comment #9
xSDx CreditAttribution: xSDx at Websolutions Agency commentedComment #11
jhedstromThe fact that this big of a change doesn't trigger any sort of test failure indicates a pretty big lack of test coverage for this formatter, so marking as 'needs tests'.
Comment #12
claudiu.cristeaMoved the work in #2686409: Time Ago summary does not render on Manage Display for Timestamp and Datetime fields. Closing this as duplicate of #2686409: Time Ago summary does not render on Manage Display for Timestamp and Datetime fields.
Comment #13
mpdonadio