Make CConfirmation.timestamp a Date object

This commit is contained in:
Alex Corn 2023-06-20 21:48:30 -04:00
parent d23d7e22c0
commit 37bac4d240
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

View File

@ -43,7 +43,7 @@ SteamCommunity.prototype.getConfirmations = function(time, key, callback) {
receiving: conf.type == EConfirmationType.Trade ? ((conf.summary || [])[1] || '') : '',
sending: (conf.summary || [])[0] || '',
time: (new Date(conf.creation_time * 1000)).toISOString(), // for backward compatibility
timestamp: conf.creation_time,
timestamp: new Date(conf.creation_time * 1000),
icon: conf.icon || ''
}));