Skip to content
Snippets Groups Projects
Commit 885c226b authored by srosse's avatar srosse
Browse files

no-jira: enhance select box for vitero timezone

parent 65ef14cd
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ package org.olat.modules.vitero.ui;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Arrays;
import java.util.TimeZone;
import org.olat.core.CoreSpringFactory;
......@@ -96,6 +97,9 @@ public class ViteroConfigurationController extends FormBasicController {
uifactory.addSpacerElement("Spacer", moduleFlc, false);
String[] timeZoneKeys = ViteroTimezoneIDs.TIMEZONE_IDS;
timeZoneKeys = timeZoneKeys.clone();
Arrays.sort(timeZoneKeys, null);
String[] timeZoneValues = new String[timeZoneKeys.length];
int i=0;
for(String timeZoneKey:timeZoneKeys) {
......@@ -104,7 +108,7 @@ public class ViteroConfigurationController extends FormBasicController {
timeZoneValues[i++] = timeZoneKey;
} else {
String value = timezone.getDisplayName(false, TimeZone.LONG);
timeZoneValues[i++] = value;
timeZoneValues[i++] = timeZoneKey + " ( " + value + " )";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment