Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! fix: show explicit schedule stop time
  • Loading branch information
greyscaled committed Jun 8, 2022
commit f6b4d0d38a0194c41033828b3247cc659baddd53
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ export const Language = {
},
autoStartLabel: (schedule: string | undefined): string => {
const prefix = "Start"
const timezone = schedule ? extractTimezone(schedule) : dayjs.tz.guess()

if (schedule) {
return `${prefix} (${dayjs().tz(extractTimezone(schedule)).format("z")})`
return `${prefix} (${dayjs().tz(timezone).format("z")})`
} else {
return prefix
}
Expand Down