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

Comments

mandclu created an issue. See original summary.

mandclu’s picture

Issue tags: +GlobalContributionWeekend2020
c-logemann’s picture

Issue tags: -GlobalContributionWeekend2020 +ContributionWeekend2020

"ContributionWeekend2020“ is the "official" tag suggested on global event page.

mandclu’s picture

Status: Active » Needs work
StatusFileSize
new2.07 KB

This 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.

maursilveira’s picture

@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"?

  • mandclu committed 288ecd0 on 8.x-2.x
    Issue #3107103 by mandclu, maursilveira: Make the timezone available to...
mandclu’s picture

Title: Make the timezone available to Views » Make the timezone available to Views - Basic
Status: Needs work » Fixed

On 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.