[v11.0.x] Time Zones: Fix relative time when using UTC timezone (#85779)

Time Zones: Fix relative time when using UTC timezone (#85637)

add UTC case to e2e test + let UTC pass through to moment.tz

(cherry picked from commit 4b5b738646)

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-04-09 12:12:32 +03:00
committed by GitHub
co-authored by Ashley Harrison
parent ee8bb9e3d4
commit d56f75eb5c
2 changed files with 35 additions and 4 deletions
@@ -126,10 +126,6 @@ export const dateTimeForTimeZone = (
input?: DateTimeInput,
formatInput?: FormatInput
): DateTime => {
if (timezone === 'utc') {
return toUtc(input, formatInput);
}
if (timezone && timezone !== 'browser') {
let result: moment.Moment;