aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-09-24 13:47:59 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-09-24 13:47:59 +0200
commit85bc9b69aebe438ace75aaafc2e04fcf9b08a9d9 (patch)
treef6058aff04281232666162f15b5d3054b349240c /phpBB/assets
parentf3fef8934ee1614bc158c05699e57f0ba8a3fcb6 (diff)
parent457e13634e3b371fbb5fbf1116c761311a683957 (diff)
downloadforums-85bc9b69aebe438ace75aaafc2e04fcf9b08a9d9.tar
forums-85bc9b69aebe438ace75aaafc2e04fcf9b08a9d9.tar.gz
forums-85bc9b69aebe438ace75aaafc2e04fcf9b08a9d9.tar.bz2
forums-85bc9b69aebe438ace75aaafc2e04fcf9b08a9d9.tar.xz
forums-85bc9b69aebe438ace75aaafc2e04fcf9b08a9d9.zip
Merge pull request #2844 from marc1706/ticket/12858
[ticket/12858] Remove hard-coded GMT from timezone drop-down and rename to UTC
Diffstat (limited to 'phpBB/assets')
-rw-r--r--phpBB/assets/javascript/core.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index b5187991f9..6ddbba7515 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -786,7 +786,7 @@ phpbb.timezoneSwitchDate = function(keepSelection) {
}
if ($tzDate.val() !== '') {
- $timezone.children('optgroup').remove(':not([label="' + $('#tz_date').val() + '"])');
+ $timezone.children('optgroup').remove(':not([data-tz-value="' + $('#tz_date').val() + '"])');
}
if ($tzDate.val() === $tzSelectDateSuggest.attr('data-suggested-tz')) {
@@ -795,7 +795,7 @@ phpbb.timezoneSwitchDate = function(keepSelection) {
$tzSelectDateSuggest.css('display', 'inline');
}
- var $tzOptions = $timezone.children('optgroup[label="' + $tzDate.val() + '"]').children('option');
+ var $tzOptions = $timezone.children('optgroup[data-tz-value="' + $tzDate.val() + '"]').children('option');
if ($tzOptions.length === 1) {
// If there is only one timezone for the selected date, we just select that automatically.
@@ -849,7 +849,7 @@ phpbb.timezonePreselectSelect = function(forceSelector) {
minutes = minutes.toString();
}
- var prefix = 'GMT' + sign + hours + ':' + minutes;
+ var prefix = 'UTC' + sign + hours + ':' + minutes;
var prefixLength = prefix.length;
var selectorOptions = $('option', '#tz_date');
var i;