The work done in #3081258: Allow user to choose a timezone added a timezone column and made this available if the appropriate widget is chosen. Having created the timezone, however, it isn't yet possible to to show this in Views. Ideally Smart Date would provide options to:
- use the timezone as a field for display, filters, etc
- format the views output using the timezone, if set
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | smart_date-timezone-views-3107103-4.patch | 2.07 KB | mandclu |
Comments
Comment #2
mandclu commentedComment #3
c-logemann"ContributionWeekend2020“ is the "official" tag suggested on global event page.
Comment #4
mandclu commentedThis patch does a basic job of making the timezone available in views, but the filter isn't really functional, and there's nothing to change the output of the times based on the timezone, if available.It might make more sense to extend the base date class for the views filter.
Comment #5
maursilveira commented@mandclu I installed the patch and tested it. It does work fine adding the timezone field to Views, and I could create simple filters (even exposed ones) using the value of the timezones. It even works filtering values from a multivalued field in the same node. I'd say the Views filter is working as expected.
What's your about for "change the output of the times based on the timezone"?
Comment #7
mandclu commentedOn testing this again, I agree that this works well enough as a starting point. It would be nice to have a filter that shows available values, like text lists or taxonomy terms, but that can wait for a later implementation. Merging this current functionality in.