Closed
Bug 858958
Opened 11 years ago
Closed 10 years ago
Make dates in Kuma timezone-aware
Categories
(developer.mozilla.org Graveyard :: Localization, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: fs, Unassigned)
References
Details
(Whiteboard: [specification][type:feature][triaged])
What problems would this solve? =============================== In MindTouch users were able to select a timezone in their profile and for all dates on the platform this timezone was taken into account. Kuma has a profile timezone field (currently broken, bug 781350), but is not timezone-aware where dates are rendered to the user's view. I'd like to be able to see the date of edits or history page dates in my timezone. Use case: E.g. for the revision dashboard: If I want to remember where I stopped to look at things yesterday, it's easier to remember a date in my timezone than in US-Pacific. I just would have to go to my yesterday evening and do not have to calculate what my yesterday evening means in the US-Pacific timezone. Who would use this? =================== International users/editors/admins. What would users see? ===================== Dates on Kuma are displayed in the timezone specified in the user's profile. What would users do? What would happen as a result? =================================================== Have a better feeling about dates as a non-US editor/user/admin. Is there anything else we should know? ====================================== Maybe use USE_TZ and pytz ? (I had a quick look at https://docs.djangoproject.com/en/dev/topics/i18n/timezones/)
Updated•10 years ago
|
Component: General → Localization
Whiteboard: [specification][type:feature] → [specification][type:feature][triaged]
Comment 1•10 years ago
|
||
This is something that could be done by our community. Luke, what info do they need to do it? The timezone is stored in the profile. (I could file specific bugs for the different places in the Web site where a time is appearing)
Flags: needinfo?(lcrouch)
Comment 2•10 years ago
|
||
Great idea. :teoli - please add a list of places where date/time is displayed.
Flags: needinfo?(lcrouch) → needinfo?(jypenator)
Whiteboard: [specification][type:feature][triaged] → [specification][type:feature][triaged][mentor=groovecoder]
Assignee | ||
Updated•10 years ago
|
Mentor: lcrouch
Whiteboard: [specification][type:feature][triaged][mentor=groovecoder] → [specification][type:feature][triaged]
Comment 3•10 years ago
|
||
The editor profile and the revision dashboard * https://developer.mozilla.org/fr/dashboards/revisions?locale=&user=&topic=&start_date=&end_date=&page=2 * https://developer.mozilla.org/fr/profiles/ziyunfei And at the bottom of each article: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
Flags: needinfo?(jypenator)
Updated•10 years ago
|
Mentor: lcrouch
Comment 5•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/e52551cabee4e77a678560424e60866cf598f9eb fix bug 858958 - Update dates in kuma to timezone specified in user profile https://github.com/mozilla/kuma/commit/d769fa9bc3715a8e9b9c27daa34f96b8e08027d4 fix bug 858958 - Update profile template to show localised time https://github.com/mozilla/kuma/commit/9ed612baf6f3785f3c7ff3c79bb9fc69848ef37f fix bug 858958 - Use normalize to handle cross DST boundries https://github.com/mozilla/kuma/commit/8cb472d332cbd906b44bc88ea79eebae68e17e40 fix bug 858958 - Move datetimeformat helper to devmo https://github.com/mozilla/kuma/commit/935d772ee883ed480b7bc8c9fd5a949013dac00c fix bug 858958 - Using try block to avoid Test Failures when get_profile() is not an attribute https://github.com/mozilla/kuma/commit/a2b812dc7b9e5c33d20deb2bd5697aede36685ce fix bug 858958 - Remove datetimeformat filter and fix nits https://github.com/mozilla/kuma/commit/9ef1a2bb854cf1826e2db08cc61ca16fc346c9ff Merge pull request #2586 from iakshay/858958-timezone Fix bug 858958 - Show dates in user specified timezone
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•