[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:
co-authored by
Ashley Harrison
parent
ee8bb9e3d4
commit
d56f75eb5c
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user