Skip to content

Commit 13831f4

Browse files
authored
Merge pull request #863 from XMOJ-Script-dev/boomzero/NaN
修复“NaN年前“
2 parents d49fcdc + 6b6ffe0 commit 13831f4

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

Update.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3091,6 +3091,17 @@
30913091
}
30923092
],
30933093
"Notes": "No release notes were provided for this release."
3094+
},
3095+
"2.4.2": {
3096+
"UpdateDate": 1759413584731,
3097+
"Prerelease": true,
3098+
"UpdateContents": [
3099+
{
3100+
"PR": 863,
3101+
"Description": "修复“NaN年前“"
3102+
}
3103+
],
3104+
"Notes": "修复“NaN年前“"
30943105
}
30953106
}
30963107
}

XMOJ.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name XMOJ
3-
// @version 2.4.1
3+
// @version 2.4.2
44
// @description XMOJ增强脚本
55
// @author @XMOJ-Script-dev, @langningchen and the community
66
// @namespace https://github/langningchen
@@ -81,7 +81,7 @@ let SmartAlert = (Message) => {
8181
*/
8282
let GetRelativeTime = (Input) => {
8383
try {
84-
Input = new Date(Input);
84+
Input = new Date(parseInt(Input));
8585
let Now = new Date().getTime();
8686
let Delta = Now - Input.getTime();
8787
let RelativeName = "";

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xmoj-script",
3-
"version": "2.4.1",
3+
"version": "2.4.2",
44
"description": "an improvement script for xmoj.tech",
55
"main": "AddonScript.js",
66
"scripts": {

0 commit comments

Comments
 (0)