WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#10288 closed defect (bug) (invalid)

Timezones in WP-Admin

Reported by: n4l Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Date/Time Keywords:
Focuses: Cc:

Description

Timezones in Wordpress are missing cities/timezones with .5, such as GMT +5.5 (Indian Standard Times), the city equivalents aren't there too (Ahmedabad, Bengaluru, Chennai, Colombo, Delhi, Hyderabad, Kolkata, Mumbai, Thiruvananthapuram), expect for Kolkata which is spelt with the old spelling Calcutta.

It would be great to add the following timezones (and possibly respective cities) into the list in General Settings at ACP:
GMT -4.30
GMT -3.30
GMT +3.30
GMT +5.50 ( Ahmedabad, Bengaluru, Chennai, Colombo, Delhi, Hyderabad, Kolkata, Mumbai, Thiruvananthapuram )
GMT +5.45 ( Kathmandu, Biratnagar, Patan, Pokhara )
GMT +6.50 ( Yangon )
GMT +9.30

Attachments (1)

10288.patch (1.1 KB) - added by hakre 6 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 @hakre6 years ago

  • Keywords needs-patch added

Thanks for reporting.

comment:2 @peaceablewhale6 years ago

  • Milestone changed from Unassigned to Future Release

comment:3 @hakre6 years ago

  • Milestone changed from Future Release to 2.8.2

Cities are provided by PHP. That means, if you miss a city in the listing, check your servers configuration for

Check with your server configuration the version of the timezonedb it provides:
http://www.php.net/manual/en/timezones.php

For the rest I further look into the issue and try to provide a first patch.

comment:4 @hakre6 years ago

All values in the dropdown list are genereated based on data PHP has, so this is not an Issue with WordPress.

This is not the case for another listing which can be patched.

if ( !wp_timezone_supported() ) : // no magic timezone support here

in /wp-admin/options-general.php ~99

(while looking into this issue I found this: #10292)

comment:5 @hakre6 years ago

  • Keywords has-patch tested added; needs-patch removed

The just attached patch introduces the following new timezones for the basic listing (extended listing is based on PHP-Data as said):

  • GMT +5:50 (Ahmedabad, Bengaluru, Chennai, Colombo, Delhi, Hyderabad, Kolkata, Mumbai, Thiruvananthapuram)
  • GMT +6:50 (Yangon)

The other Timezones reported by n4l were already part of the listing.

@hakre6 years ago

comment:6 @hakre6 years ago

  • Milestone changed from 2.8.2 to 2.8.1

comment:7 @peaceablewhale6 years ago

  • Keywords reporter-feedback dev-feedback added; tested removed

According Wikipedia and other online sources, there are no UTC+05:50 and UTC+06:50 timezones. Ahmedabad, Bengaluru, Chennai, Delhi, Hyderabad, Kolkata, Mumbai, and Thiruvananthapuram are in Indian Standard Time (UTC+05:30). Colombo is in Sri Lanka Standard Time Zone (UTC+05:30). Yangon is in Myanmar Standard Time (UTC+06:30).

Unless there is an official source showing that UTC+05:50 and UTC+06:50 exist, I suggest marking this report as invalid.

comment:8 @hakre6 years ago

  • Keywords has-patch reporter-feedback dev-feedback removed
  • Milestone 2.8.1 deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 2.8 deleted

Thanks for clarification. I have not checked the report from the factual side. I did this now and as you said, it is invalid. Therefore it can be resolved.

comment:9 @n4l6 years ago

5.50 and 6.50 do not exist. I've made a mistake while typing. Sorry.

GMT -4.30, GMT -3.30, GMT +3.30, GMT +5.30 ( Ahmedabad, Bengaluru, Chennai, Colombo, Delhi, Hyderabad, Kolkata, Mumbai, Thiruvananthapuram ), GMT +5.45 ( Kathmandu, Biratnagar, Patan, Pokhara ), GMT +6.30 ( Yangon ), GMT +9.30

Note: See TracTickets for help on using tickets.