Problem/Motivation
I need to set a custom "Date format" for a field in a "REST export" display in a view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Steps to reproduce
- Create a view with a "REST export" display.
- Use "Show: Fields"
- Add a date field, like "Content: changed"
- Configure the field with "Date Format: Custom" and any "Custom date format"
- Preview the view.
Observe that the custom date format is ignored.Observe that the custom date format is wrapped in an unwanted HTMLtime
tag. Do the same with a "Page" display.Observe that the custom date format is not ignored on the page.
Or you can simply import the exported views config I have attached.
Proposed resolution
The "REST export" display should not wrap field values in HTML tags.
Also, when using the "U" date format, I would expect the output to be an integer rather than a string.
Merge request link
None yet.
Remaining tasks
TODO
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
TODO