Automattic / Automattic/o2

Time zone formatting not respected on the front-end

Open
#40 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
338
Forks
56
Avg merge
24m
Merged PRs (30d)
16

Description

Time format, as specified at Settings -> General in the WordPress dashboard, is not correctly used in the front-end.

Specifically, while one can specify the time zone abbreviation (e.g., EST) in the format string, the output includes the UTC offset instead.

Specifying the following time format:

`g:i a T`

under Settings -> General produces an output like: "1:00pm -05:00", instead of the expected: "1:00pm EST"

The issue happens on both .com (only when front-end editing is enabled in Theme Options) and self-hosted WordPress sites (when o2 plugin is activated).

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Reproduce the issue with the specified `g:i a T` format in both front-end editing contexts, then trace the front-end time-formatting path; done means the output uses the configured abbreviation, such as `1:00pm EST`, rather than the UTC offset.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.