// compatibility, but we've added the extra "preferred timezone" concept.
// Note that this caches the value at the system level and we'll need to
// add a per-realm override and possibly a per-user override in the future.
if (timezoneByOffsetKeys.containsKey(newKey)) {
String currId = timezoneByOffsetKeys.get(newKey).getID();
if (preferredTimezones == null || !preferredTimezones.contains(currId)) {
Log.aribaweb.debug("Overwriting existing timezone key: %s value: %s with new value: %s",
newKey, currId, timezones[i]);
timezoneByOffsetKeys.put(newKey, timezone);