We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6547db commit 6ff1b68Copy full SHA for 6ff1b68
frontend/src/components/stock.vue
@@ -163,10 +163,8 @@ EventsOn("updateVersion",async (msg) => {
163
const githubTimeStr = msg.published_at;
164
// 创建一个 Date 对象
165
const utcDate = new Date(githubTimeStr);
166
-
167
// 获取本地时间
168
- const date = new Date(utcDate.getTime() + utcDate.getTimezoneOffset() * 60 * 1000);
169
+ const date = new Date(utcDate.getTime());
170
const year = date.getFullYear();
171
// getMonth 返回值是 0 - 11,所以要加 1
172
const month = String(date.getMonth() + 1).padStart(2, '0');
0 commit comments