Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Wrong timezone displayed for Date field in CP #15805

Closed
stolat opened this issue Sep 27, 2024 · 4 comments
Closed

[4.x]: Wrong timezone displayed for Date field in CP #15805

stolat opened this issue Sep 27, 2024 · 4 comments

Comments

@stolat
Copy link

stolat commented Sep 27, 2024

What happened?

Description

Timezone for EST dates is being displayed as EDT

Steps to reproduce

  1. Create an entry with a Date field with enable Show Time Zone on
  2. Set date to 12/1/24, select New York for time zone

Expected behavior

Timezone should be EST

Actual behavior

Timezone is EDT - there is no issue in front-end templates, but content managers are confused and complaining

Craft CMS version

4.12.4.1

PHP version

8.1.2.7

Operating system and version

Ubuntu 22.04.4

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

New York is currently on the EDT time zone (D = Daylight).

@stolat
Copy link
Author

stolat commented Sep 28, 2024

Understood, but select a date that should be EST and it still shows at D

2024-09-27_11-18-20

brandonkelly added a commit that referenced this issue Oct 4, 2024
@brandonkelly
Copy link
Member

Right, ok. Just fixed this for the next Craft 4 and 5 releases. Note that the time zone labels won’t refresh automatically – so they may be mislabeled right when you select a date that is on a different time zone. But the labels will correct themselves the next time the form is loaded.

@brandonkelly
Copy link
Member

brandonkelly commented Oct 8, 2024

Craft 4.12.6 and 5.4.7 are out with that fix. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants