Update CompleteTimestamps.plugin.js
This commit is contained in:
parent
fa12cea540
commit
cad0ac5a52
|
@ -2,7 +2,7 @@
|
||||||
* @name CompleteTimestamps
|
* @name CompleteTimestamps
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.5.3
|
* @version 1.5.4
|
||||||
* @description Replaces Timestamps with your own custom Timestamps
|
* @description Replaces Timestamps with your own custom Timestamps
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "CompleteTimestamps",
|
"name": "CompleteTimestamps",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.5.3",
|
"version": "1.5.4",
|
||||||
"description": "Replaces Timestamps with your own custom Timestamps"
|
"description": "Replaces Timestamps with your own custom Timestamps"
|
||||||
},
|
},
|
||||||
"changeLog": {
|
"changeLog": {
|
||||||
|
@ -382,7 +382,7 @@ module.exports = (_ => {
|
||||||
let timeObj = time || new Date();
|
let timeObj = time || new Date();
|
||||||
if (typeof time == "string" || typeof time == "number") timeObj = new Date(time);
|
if (typeof time == "string" || typeof time == "number") timeObj = new Date(time);
|
||||||
if (timeObj.toString() == "Invalid Date") timeObj = new Date(parseInt(time));
|
if (timeObj.toString() == "Invalid Date") timeObj = new Date(parseInt(time));
|
||||||
if (timeObj.toString() == "Invalid Date" || timeObj.constructor != Date) return;
|
if (timeObj.toString() == "Invalid Date" || typeof timeObj.toLocaleDateString != "function") return;
|
||||||
let timeString = "";
|
let timeString = "";
|
||||||
if (languageId != "own") {
|
if (languageId != "own") {
|
||||||
let timestamp = [];
|
let timestamp = [];
|
||||||
|
@ -462,4 +462,4 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
|
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue