2

I have a date field in a content type with a collected "end date" and I want to show the end date in a view with the Time ago view formatter.

The problem is that I don't find where to select the end date only display, like in the date and time formatter. Because when I select the Time ago formatter, I don't see the options for select the end date. So when I go to see the view output the Time ago always use the "start date".

6
  • 2
    Possible duplicate of "Time ago" from "date end" in views
    – oksana-c
    Commented Feb 1, 2016 at 20:16
  • 2
    @oksana-c is not a duplicate because the Pierre.Vriens answer have the solution, it's a bug ;-) Commented Feb 1, 2016 at 21:59
  • @AdrianCidAlmaguer if you looked at the link in the comment, you would realize that the answer there contains the link to the same issue that Pierre.Vriens posted in his answer, as well as other solutions. Also, the DO issue that Pierre.Vriens linked to is NOT a bug, but a feature request. So in fact there is nothing wrong with the Date module as the formatter requested in current question was not planned in module's functionality originally. And - Yes - this question is a duplicateof the one that I linked to.
    – oksana-c
    Commented Feb 2, 2016 at 1:13
  • 1
    @AdrianCidAlmaguer my intent is to share useful info helpful to others
    – oksana-c
    Commented Feb 2, 2016 at 2:42
  • 2
    @oksana-c that's the point here, sorry, I will read more slow for the next, and thanks for your comment Commented Feb 2, 2016 at 3:23

2 Answers 2

2

Have a look at the issue about "Date field's interval formatter always uses start date". It seems pretty close to what you're struggling with.

Comment # 9 in that issue also contains a patch ...

1
3

This not will solve the "realy" problem with the bug, but is a way:

If you are in a early stage of your project and you don't want use the patch you can delete the field and create two separated fields:

  • initial_date
  • final_date

I test it and this works fine.

If you want, you can read this: When should I use collect an end date for a field, instead of using 2 separated date fields?

I will add an explanation in the question about this bug.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.