Skip to content

Commit da11b0a

Browse files
sunchanglongsunng87
authored andcommitted
chore: fix copilot suggest
1 parent bc03a82 commit da11b0a

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/components/global-setting/index.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,7 @@ a-drawer.settings-drawer(
169169
const timezoneOptions = computed(() => {
170170
const opts: { label: string; value: string }[] = [{ label: 'UTC', value: 'UTC' }]
171171
for (let h = -12; h <= 14; h += 1) {
172-
if (h === 0) {
173-
// Skip UTC offset zero since we already include 'UTC'
174-
// and we prefer users to pick the canonical 'UTC'
175-
} else {
172+
if (h !== 0) {
176173
const sign = h > 0 ? '+' : '-'
177174
const abs = Math.abs(h)
178175
const label = `UTC${sign}${abs}`

src/components/time-select/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ a-trigger#time-select(
1111
template(#icon)
1212
svg.icon-16
1313
use(href="#time")
14-
div(style="display: flex; align-items: center; gap: 4px; justify-content: ")
14+
div(style="display: flex; align-items: center; gap: 4px")
1515
div(v-if="isRelative") {{ relativeTimeMap[timeLength] || props.emptyStr }}
16-
|
16+
1717
div(v-else)
1818
| {{ absoluteTimeLabel }}
1919
.timezone {{ timezoneLabel }}

0 commit comments

Comments
 (0)