mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-21 11:48:57 +08:00
feat: increase support for multiple time zones
* 优化实现方法
This commit is contained in:
@@ -10,5 +10,5 @@ export default eventHandler(async (event) => {
|
||||
}
|
||||
const { timezone } = await readBody(event);
|
||||
setTimezone(timezone);
|
||||
return useResponseSuccess();
|
||||
return useResponseSuccess({});
|
||||
});
|
||||
@@ -7,7 +7,7 @@ export interface UserInfo {
|
||||
homePath?: string;
|
||||
}
|
||||
|
||||
export interface TimeZoneOption {
|
||||
export interface TimezoneOption {
|
||||
offset: number;
|
||||
timeZone: string;
|
||||
}
|
||||
@@ -397,7 +397,7 @@ export function getMenuIds(menus: any[]) {
|
||||
/**
|
||||
* 时区选项
|
||||
*/
|
||||
export const TIME_ZONE_OPTIONS: TimeZoneOption[] = [
|
||||
export const TIME_ZONE_OPTIONS: TimezoneOption[] = [
|
||||
{
|
||||
offset: -5,
|
||||
timezone: 'America/New_York',
|
||||
|
||||
Reference in New Issue
Block a user