Altering timezone description to remove UTC and (US) from calendar events
The default calendar event popup shows (UTC-08:00) Pacific Time (US & Canada) after the time. Is there any way to alter that timezone description so it only says (PST)?
Hi Adam,
Please note that we get the information which we display after the event time from the system by using the id of the time zone. For example:
var timeZone = TimeZoneInfo.FindSystemTimeZoneById(
"FLE Standard Time"
);
"(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius"
$(document).ready(
function
()
debugger;
var
utcPatern = /\(UTC.*?\)\s/;
var
calendar = $find(
"C001_eventsFrontendCalendar_ctl00_ctl00_viewEventDialog"
);
var
baseRebind = calendar._rebind;
calendar._baseRebind = baseRebind;
calendar._rebind = newRebind;
function
newRebind ()
this
._baseRebind();
if
(
this
._appointment.get_attributes().getAttribute(
"AllDay"
) !=
"True"
)
var
userTimeZone = GetUserPreferences().get_timeZoneDisplayName();
//Replace the UTC part of the time zone
var
userTimeZoneModified = userTimeZone.replace(utcPatern,
"(PST) "
);
jQuery(
this
.get_timeZoneDisplayNameLabel()).html(userTimeZoneModified);
);
// e.g. "FLE Standard Time"
var
timezoneId = GetUserPreferences().get_timeZoneId();
// e.g. "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius"
var
zone displayName = GetUserPreferences().get_timeZoneDisplayName();