Skip to content

Commit

Permalink
fix:时区固定为东八区
Browse files Browse the repository at this point in the history
  • Loading branch information
fifthThirteen committed Jul 20, 2024
1 parent a7e448b commit 00068cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/day.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ dayjs.extend(isBetween);

// 默认时区为东八区
import store from "@/store";
store.state.timezone = dayjs.tz.guess();
// 用户当前时区 因游戏时间都是东八区,不再设置当前时区,此处影响范围:名望、抓马
// store.state.timezone = dayjs.tz.guess();
const _timezone = store.state.timezone;
dayjs.tz.setDefault(_timezone);

Expand Down

0 comments on commit 00068cc

Please sign in to comment.