feat: increase support for multiple time zones
This commit is contained in:
parent
e3e5755903
commit
e01803ce9d
@ -38,7 +38,9 @@ const useUserProfileStore = defineStore('user-profile', () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
initTimezone();
|
initTimezone().catch((error) => {
|
||||||
|
console.error('Failed to initialize timezone during store setup:', error);
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
timezone: timezoneRef,
|
timezone: timezoneRef,
|
||||||
|
|||||||
@ -38,7 +38,9 @@ const useUserProfileStore = defineStore('user-profile', () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
initTimezone();
|
initTimezone().catch((error) => {
|
||||||
|
console.error('Failed to initialize timezone during store setup:', error);
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
timezone: timezoneRef,
|
timezone: timezoneRef,
|
||||||
|
|||||||
@ -38,7 +38,9 @@ const useUserProfileStore = defineStore('user-profile', () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
initTimezone();
|
initTimezone().catch((error) => {
|
||||||
|
console.error('Failed to initialize timezone during store setup:', error);
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
timezone: timezoneRef,
|
timezone: timezoneRef,
|
||||||
|
|||||||
@ -70,7 +70,7 @@ const handleClickItem = (timezone: string) => {
|
|||||||
@click="handleClickItem(item)"
|
@click="handleClickItem(item)"
|
||||||
>
|
>
|
||||||
<RadioGroupItem :id="item" :value="item" />
|
<RadioGroupItem :id="item" :value="item" />
|
||||||
<label class="cursor-pointer">{{ item }}</label>
|
<label :for="item" class="cursor-pointer">{{ item }}</label>
|
||||||
</div>
|
</div>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</div>
|
</div>
|
||||||
@ -79,7 +79,7 @@ const handleClickItem = (timezone: string) => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.container {
|
.timezone-container {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user