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; ...@@ -21,6 +21,7 @@ package org.olat.modules.vitero.ui;
import java.net.URI; import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.util.Arrays;
import java.util.TimeZone; import java.util.TimeZone;
import org.olat.core.CoreSpringFactory; import org.olat.core.CoreSpringFactory;
...@@ -96,6 +97,9 @@ public class ViteroConfigurationController extends FormBasicController { ...@@ -96,6 +97,9 @@ public class ViteroConfigurationController extends FormBasicController {
uifactory.addSpacerElement("Spacer", moduleFlc, false); uifactory.addSpacerElement("Spacer", moduleFlc, false);
String[] timeZoneKeys = ViteroTimezoneIDs.TIMEZONE_IDS; String[] timeZoneKeys = ViteroTimezoneIDs.TIMEZONE_IDS;
timeZoneKeys = timeZoneKeys.clone();
Arrays.sort(timeZoneKeys, null);
String[] timeZoneValues = new String[timeZoneKeys.length]; String[] timeZoneValues = new String[timeZoneKeys.length];
int i=0; int i=0;
for(String timeZoneKey:timeZoneKeys) { for(String timeZoneKey:timeZoneKeys) {
...@@ -104,7 +108,7 @@ public class ViteroConfigurationController extends FormBasicController { ...@@ -104,7 +108,7 @@ public class ViteroConfigurationController extends FormBasicController {
timeZoneValues[i++] = timeZoneKey; timeZoneValues[i++] = timeZoneKey;
} else { } else {
String value = timezone.getDisplayName(false, TimeZone.LONG); 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