MT Override Date to Beijing Time

Override JavaScript's Date object to always use Beijing time (UTC+8)

As of 2024-04-25. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyforks.org/scripts/493489/1366339/MT%20Override%20Date%20to%20Beijing%20Time.js

Author
shichent
Version
0.1
Created
2024-04-25
Updated
2024-04-25
Size
1.51 KB
License
MIT

如果你的电脑时区不是北京时间(UTC+8),MT不能正确显示已去时间,菠菜截止时间,种子用户最后报告时间等。例如,对于本地时间是美国东部时间的用户,刚发布1分钟的种子,MT会显示发布时间为“12小时内”。

这个脚本可以将MT读取到的本地时间改为北京时间,从而正确显示已去时间。

注意,MT网页上所有时间仍按北京时间显示

The "Elapsed time" function is not working correctly if your local time zone is not Beijing Time (UTC+8). This script changes the time zone setting on MT webpages, so elapsed time is correct.

Note that Occurrence time is still displayed in Beijing Time (UTC+8).

This script is co-written with ChatGPT4.

长期地址
遇到问题?请前往 GitHub 提 Issues。