mirror of
https://github.com/AsgardEternal/DBLogExtension.git
synced 2025-01-02 15:39:31 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
cb1c6877a8
commit
d06e9d353d
@ -123,6 +123,7 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
);
|
);
|
||||||
console.log('last tick found:', lastTickTime);
|
console.log('last tick found:', lastTickTime);
|
||||||
|
|
||||||
|
if(!lastTickTime) return;
|
||||||
const lastServerDate = lastTickTime.time;
|
const lastServerDate = lastTickTime.time;
|
||||||
const lastServerTime = lastServerDate.getFullYear() + '-' + (lastServerDate.getMonth() + 1) + '-' + lastServerDate.getDate() + ' ' + lastServerDate.getHours() + ':' + lastServerDate.getMinutes() + ':' + lastServerDate.getSeconds();
|
const lastServerTime = lastServerDate.getFullYear() + '-' + (lastServerDate.getMonth() + 1) + '-' + lastServerDate.getDate() + ' ' + lastServerDate.getHours() + ':' + lastServerDate.getMinutes() + ':' + lastServerDate.getSeconds();
|
||||||
console.log('last time found:', lastServerTime);
|
console.log('last time found:', lastServerTime);
|
||||||
|
Loading…
Reference in New Issue
Block a user