Update db-log-addOn.js

This commit is contained in:
Skillet 2023-05-08 12:43:11 -04:00 committed by GitHub
parent cb1c6877a8
commit d06e9d353d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,7 @@ export default class DBLogPlayerTime extends DBLog {
);
console.log('last tick found:', lastTickTime);
if(!lastTickTime) return;
const lastServerDate = lastTickTime.time;
const lastServerTime = lastServerDate.getFullYear() + '-' + (lastServerDate.getMonth() + 1) + '-' + lastServerDate.getDate() + ' ' + lastServerDate.getHours() + ':' + lastServerDate.getMinutes() + ':' + lastServerDate.getSeconds();
console.log('last time found:', lastServerTime);