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

add UTC case to e2e test + let UTC pass through to moment.tz
This commit is contained in:
Ashley Harrison
2024-04-09 09:54:57 +01:00
committed by GitHub
parent 8d75dcec04
commit 4b5b738646
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;