Update CompleteTimestamps.plugin.js

This commit is contained in:
Mirco Wittrien 2021-03-10 05:13:20 +01:00 committed by GitHub
parent fa12cea540
commit cad0ac5a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @name CompleteTimestamps
* @author DevilBro
* @authorId 278543574059057154
* @version 1.5.3
* @version 1.5.4
* @description Replaces Timestamps with your own custom Timestamps
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "CompleteTimestamps",
"author": "DevilBro",
"version": "1.5.3",
"version": "1.5.4",
"description": "Replaces Timestamps with your own custom Timestamps"
},
"changeLog": {
@ -382,7 +382,7 @@ module.exports = (_ => {
let timeObj = time || new Date();
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.constructor != Date) return;
if (timeObj.toString() == "Invalid Date" || typeof timeObj.toLocaleDateString != "function") return;
let timeString = "";
if (languageId != "own") {
let timestamp = [];
@ -462,4 +462,4 @@ module.exports = (_ => {
}
};
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
})();
})();