mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
38a261daac
closes #6406 - adding timeZone Service to get the offset (=timezone reg. moment-timezone) overall available - new publishedAtOffset date as CP using timeZone service and moment-timezone to calculate offset incl. DST - removing timezone-obj transform as it became obsolete with moment-timezone - reading timezones from configuration/timezones api endpoint - adding a moment-utc transform to only work with utc times in backend - when switching the timezone in the select box, the user will be shown the local time of the selected timezone - added clock service to show actual time ticking below select box - default timezone is '(GMT) Greenwich Mean Time : Dublin, Edinburgh, London' - if no timezone is saved in the settings yet, the default value will be used - showing local time in 'Publish Date' when it's a draft and no actual publishedAt value exists - Removed the format 'DD MMM YY @ HH:mm (UTC Z)' which resolves to '01 Jan 16 @ 14:00 (UTC +02:00)' - Changing the date.js helper in core/server for moment-timezone - Fix timezone select: updates `selectedTimezone` to return the matching object from `availableTimezones` - Including timezones in test for date-helper - update to moment-timezone 0.5.1 - moving form-group of 'selectTimezone' further up so - Tests: - Set except for clock service in test env - adding fixtures to mirage - adding 'service.ajax' to navigation-test.js - adding 'service:ghostPaths' to navigation-test.js - Code improvements - Changing clockservice to ES6
329 lines
6.7 KiB
JSON
329 lines
6.7 KiB
JSON
{
|
|
"timezones": [
|
|
{
|
|
"name": "Pacific/Pago_Pago",
|
|
"label": "(GMT -11:00) Midway Island, Samoa",
|
|
"offset": -660
|
|
},
|
|
{
|
|
"name": "Pacific/Honolulu",
|
|
"label": "(GMT -10:00) Hawaii",
|
|
"offset": -600
|
|
},
|
|
{
|
|
"name": "America/Anchorage",
|
|
"label": "(GMT -9:00) Alaska",
|
|
"offset": -540
|
|
},
|
|
{
|
|
"name": "America/Tijuana",
|
|
"label": "(GMT -8:00) Chihuahua, La Paz, Mazatlan",
|
|
"offset": -480
|
|
},
|
|
{
|
|
"name": "America/Los_Angeles",
|
|
"label": "(GMT -8:00) Pacific Time (US & Canada); Tijuana",
|
|
"offset": -480
|
|
},
|
|
{
|
|
"name": "America/Phoenix",
|
|
"label": "(GMT -7:00) Arizona",
|
|
"offset": -420
|
|
},
|
|
{
|
|
"name": "America/Denver",
|
|
"label": "(GMT -7:00) Mountain Time (US & Canada)",
|
|
"offset": -420
|
|
},
|
|
{
|
|
"name": "America/Costa_Rica",
|
|
"label": "(GMT -6:00) Central America",
|
|
"offset": -360
|
|
},
|
|
{
|
|
"name": "America/Chicago",
|
|
"label": "(GMT -6:00) Central Time (US & Canada)",
|
|
"offset": -360
|
|
},
|
|
{
|
|
"name": "America/Mexico_City",
|
|
"label": "(GMT -6:00) Guadalajara, Mexico City, Monterrey",
|
|
"offset": -360
|
|
},
|
|
{
|
|
"name": "America/Regina",
|
|
"label": "(GMT -6:00) Saskatchewan",
|
|
"offset": -360
|
|
},
|
|
{
|
|
"name": "America/Bogota",
|
|
"label": "(GMT -5:00) Bogota, Lima, Quito",
|
|
"offset": -300
|
|
},
|
|
{
|
|
"name": "America/New_York",
|
|
"label": "(GMT -5:00) Eastern Time (US & Canada)",
|
|
"offset": -300
|
|
},
|
|
{
|
|
"name": "America/Fort_Wayne",
|
|
"label": "(GMT -5:00) Indiana (East)",
|
|
"offset": -300
|
|
},
|
|
{
|
|
"name": "America/Caracas",
|
|
"label": "(GMT -4:30) Caracas, La Paz",
|
|
"offset": -270
|
|
},
|
|
{
|
|
"name": "America/Halifax",
|
|
"label": "(GMT -4:00) Atlantic Time (Canada); Brasilia, Greenland",
|
|
"offset": -240
|
|
},
|
|
{
|
|
"name": "America/St_Johns",
|
|
"label": "(GMT -3:30) Newfoundland",
|
|
"offset": -210
|
|
},
|
|
{
|
|
"name": "America/Argentina/Buenos_Aires",
|
|
"label": "(GMT -3:00) Buenos Aires, Georgetown",
|
|
"offset": -180
|
|
},
|
|
{
|
|
"name": "America/Santiago",
|
|
"label": "(GMT -3:00) Santiago",
|
|
"offset": -180
|
|
},
|
|
{
|
|
"name": "America/Noronha",
|
|
"label": "(GMT -2:00) Fernando de Noronha",
|
|
"offset": -120
|
|
},
|
|
{
|
|
"name": "Atlantic/Azores",
|
|
"label": "(GMT -1:00) Azores",
|
|
"offset": -60
|
|
},
|
|
{
|
|
"name": "Atlantic/Cape_Verde",
|
|
"label": "(GMT -1:00) Cape Verde Is.",
|
|
"offset": -60
|
|
},
|
|
{
|
|
"name": "Africa/Casablanca",
|
|
"label": "(GMT) Casablanca, Monrovia",
|
|
"offset": 0
|
|
},
|
|
{
|
|
"name": "Europe/Dublin",
|
|
"label": "(GMT) Greenwich Mean Time : Dublin, Edinburgh, London",
|
|
"offset": 0
|
|
},
|
|
{
|
|
"name": "Europe/Amsterdam",
|
|
"label": "(GMT +1:00) Amsterdam, Berlin, Rome, Stockholm, Vienna",
|
|
"offset": 60
|
|
},
|
|
{
|
|
"name": "Europe/Prague",
|
|
"label": "(GMT +1:00) Belgrade, Bratislava, Budapest, Prague",
|
|
"offset": 60
|
|
},
|
|
{
|
|
"name": "Europe/Paris",
|
|
"label": "(GMT +1:00) Brussels, Copenhagen, Madrid, Paris",
|
|
"offset": 60
|
|
},
|
|
{
|
|
"name": "Europe/Warsaw",
|
|
"label": "(GMT +1:00) Sarajevo, Skopje, Warsaw, Zagreb",
|
|
"offset": 60
|
|
},
|
|
{
|
|
"name": "Africa/Lagos",
|
|
"label": "(GMT +1:00) West Central Africa",
|
|
"offset": 60
|
|
},
|
|
{
|
|
"name": "Europe/Istanbul",
|
|
"label": "(GMT +2:00) Athens, Beirut, Bucharest, Istanbul",
|
|
"offset": 120
|
|
},
|
|
{
|
|
"name": "Africa/Cairo",
|
|
"label": "(GMT +2:00) Cairo, Egypt",
|
|
"offset": 120
|
|
},
|
|
{
|
|
"name": "Africa/Maputo",
|
|
"label": "(GMT +2:00) Harare",
|
|
"offset": 120
|
|
},
|
|
{
|
|
"name": "Europe/Kiev",
|
|
"label": "(GMT +2:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius",
|
|
"offset": 120
|
|
},
|
|
{
|
|
"name": "Asia/Jerusalem",
|
|
"label": "(GMT +2:00) Jerusalem",
|
|
"offset": 120
|
|
},
|
|
{
|
|
"name": "Africa/Johannesburg",
|
|
"label": "(GMT +2:00) Pretoria",
|
|
"offset": 120
|
|
},
|
|
{
|
|
"name": "Asia/Baghdad",
|
|
"label": "(GMT +3:00) Baghdad",
|
|
"offset": 180
|
|
},
|
|
{
|
|
"name": "Asia/Riyadh",
|
|
"label": "(GMT +3:00) Kuwait, Nairobi, Riyadh",
|
|
"offset": 180
|
|
},
|
|
{
|
|
"name": "Asia/Tehran",
|
|
"label": "(GMT +3:30) Tehran",
|
|
"offset": 210
|
|
},
|
|
{
|
|
"name": "Asia/Dubai",
|
|
"label": "(GMT +4:00) Abu Dhabi, Muscat",
|
|
"offset": 240
|
|
},
|
|
{
|
|
"name": "Asia/Baku",
|
|
"label": "(GMT +4:00) Baku, Tbilisi, Yerevan",
|
|
"offset": 240
|
|
},
|
|
{
|
|
"name": "Europe/Moscow",
|
|
"label": "(GMT +4:00) Moscow, St. Petersburg, Volgograd",
|
|
"offset": 240
|
|
},
|
|
{
|
|
"name": "Asia/Kabul",
|
|
"label": "(GMT +4:30) Kabul",
|
|
"offset": 270
|
|
},
|
|
{
|
|
"name": "Asia/Karachi",
|
|
"label": "(GMT +5:00) Islamabad, Karachi, Tashkent",
|
|
"offset": 300
|
|
},
|
|
{
|
|
"name": "Asia/Kolkata",
|
|
"label": "(GMT +5:30) Chennai, Calcutta, Mumbai, New Delhi",
|
|
"offset": 330
|
|
},
|
|
{
|
|
"name": "Asia/Kathmandu",
|
|
"label": "(GMT +5:45) Katmandu",
|
|
"offset": 345
|
|
},
|
|
{
|
|
"name": "Asia/Almaty",
|
|
"label": "(GMT +6:00) Almaty, Novosibirsk",
|
|
"offset": 360
|
|
},
|
|
{
|
|
"name": "Asia/Dhaka",
|
|
"label": "(GMT +6:00) Astana, Dhaka, Sri Jayawardenepura",
|
|
"offset": 360
|
|
},
|
|
{
|
|
"name": "Asia/Yekaterinburg",
|
|
"label": "(GMT +6:00) Yekaterinburg",
|
|
"offset": 360
|
|
},
|
|
{
|
|
"name": "Asia/Rangoon",
|
|
"label": "(GMT +6:30) Rangoon",
|
|
"offset": 390
|
|
},
|
|
{
|
|
"name": "Asia/Bangkok",
|
|
"label": "(GMT +7:00) Bangkok, Hanoi, Jakarta",
|
|
"offset": 420
|
|
},
|
|
{
|
|
"name": "Asia/Hong_Kong",
|
|
"label": "(GMT +8:00) Beijing, Chongqing, Hong Kong, Urumqi",
|
|
"offset": 480
|
|
},
|
|
{
|
|
"name": "Asia/Krasnoyarsk",
|
|
"label": "(GMT +8:00) Krasnoyarsk",
|
|
"offset": 480
|
|
},
|
|
{
|
|
"name": "Asia/Singapore",
|
|
"label": "(GMT +8:00) Kuala Lumpur, Perth, Singapore, Taipei",
|
|
"offset": 480
|
|
},
|
|
{
|
|
"name": "Asia/Irkutsk",
|
|
"label": "(GMT +9:00) Irkutsk, Ulaan Bataar",
|
|
"offset": 540
|
|
},
|
|
{
|
|
"name": "Asia/Tokyo",
|
|
"label": "(GMT +9:00) Osaka, Sapporo, Tokyo",
|
|
"offset": 540
|
|
},
|
|
{
|
|
"name": "Asia/Seoul",
|
|
"label": "(GMT +9:00) Seoul",
|
|
"offset": 540
|
|
},
|
|
{
|
|
"name": "Australia/Darwin",
|
|
"label": "(GMT +9:30) Darwin",
|
|
"offset": 570
|
|
},
|
|
{
|
|
"name": "Australia/Brisbane",
|
|
"label": "(GMT +10:00) Brisbane, Guam, Port Moresby",
|
|
"offset": 600
|
|
},
|
|
{
|
|
"name": "Asia/Yakutsk",
|
|
"label": "(GMT +10:00) Yakutsk",
|
|
"offset": 600
|
|
},
|
|
{
|
|
"name": "Australia/Adelaide",
|
|
"label": "(GMT +10:30) Adelaide",
|
|
"offset": 630
|
|
},
|
|
{
|
|
"name": "Australia/Sydney",
|
|
"label": "(GMT +11:00) Canberra, Hobart, Melbourne, Sydney, Vladivostok",
|
|
"offset": 660
|
|
},
|
|
{
|
|
"name": "Pacific/Fiji",
|
|
"label": "(GMT +12:00) Fiji, Kamchatka, Marshall Is.",
|
|
"offset": 720
|
|
},
|
|
{
|
|
"name": "Pacific/Kwajalein",
|
|
"label": "(GMT +12:00) International Date Line West",
|
|
"offset": 720
|
|
},
|
|
{
|
|
"name": "Asia/Magadan",
|
|
"label": "(GMT +12:00) Magadan, Soloman Is., New Caledonia",
|
|
"offset": 720
|
|
},
|
|
{
|
|
"name": "Pacific/Auckland",
|
|
"label": "(GMT +13:00) Auckland, Wellington",
|
|
"offset": 780
|
|
}
|
|
]
|
|
}
|