mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-23 21:50:10 +08:00
Make CConfirmation.timestamp a Date object
This commit is contained in:
parent
d23d7e22c0
commit
37bac4d240
@ -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 || ''
|
||||
}));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user