Page MenuHomePhabricator

Create an event time formatter class to format event time and time zone
Closed, ResolvedPublic3 Estimated Story Points

Description

This class would provide methods for formatting the event time, and a time zone. For the event time, it would look at the event type and choose the appropriate time zone (as described in T316688), then call Language::user(Date|Time|TimeAndDate). For the time zone it would use the same logic to choose the appropriate time zone, and then format it as appropriate (e.g., l10n).

Event Timeline

ifried set the point value for this task to 3.Nov 2 2022, 5:22 PM

Change 852980 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Introduce EventTimeFormatter

https://gerrit.wikimedia.org/r/852980

Change 853296 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Choose appropriate timezone in EventTimeFormatter

https://gerrit.wikimedia.org/r/853296

vyuen changed the task status from Open to In Progress.Nov 7 2022, 3:30 PM

Change 852980 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Introduce EventTimeFormatter

https://gerrit.wikimedia.org/r/852980

Change 853296 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Choose appropriate timezone in EventTimeFormatter

https://gerrit.wikimedia.org/r/853296

This is an internal change that cannot be tested directly. Instead, it can be tested indirectly via T321717, T321718, and T322050.