简体中文、英文、多语言框架、时区、夏令时、公制/英制和区域配置
This commit is contained in:
@@ -38,6 +38,7 @@ const { RangePicker } = DatePicker;
|
||||
export default function WayLinePage({ onRefresh }) {
|
||||
const { t } = useTranslation();
|
||||
const { userInfo } = useSelector((state: RootState) => state.user);
|
||||
const { timezone } = useSelector((state: RootState) => state.preferences);
|
||||
const { stationId } = useSelector((state: RootState) => state.station);
|
||||
const { currentStation } = useSelector((state: RootState) => state.station);
|
||||
|
||||
@@ -325,7 +326,7 @@ export default function WayLinePage({ onRefresh }) {
|
||||
days_of_month: [],
|
||||
week_of_month: 1,
|
||||
},
|
||||
time_zone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||
time_zone: timezone,
|
||||
|
||||
recurring_task_start_time_list: [],
|
||||
});
|
||||
@@ -389,7 +390,7 @@ export default function WayLinePage({ onRefresh }) {
|
||||
task_type: 'immediate',
|
||||
repeat_type: 'nonrepeating',
|
||||
repeat_option: { interval: 1 },
|
||||
time_zone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||
time_zone: timezone,
|
||||
begin_at: null,
|
||||
end_at: null,
|
||||
recurring_task_start_time_list: [],
|
||||
@@ -687,7 +688,7 @@ export default function WayLinePage({ onRefresh }) {
|
||||
resumable_status: 'auto',
|
||||
min_battery_capacity: 50,
|
||||
repeat_type: 'nonrepeating',
|
||||
time_zone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||
time_zone: timezone,
|
||||
};
|
||||
|
||||
const res: any = await createWaylineTask(payload);
|
||||
|
||||
Reference in New Issue
Block a user