From 37bac4d2405933f15f33a8b68719b193b05cce54 Mon Sep 17 00:00:00 2001 From: Alex Corn Date: Tue, 20 Jun 2023 21:48:30 -0400 Subject: [PATCH] Make CConfirmation.timestamp a Date object --- components/confirmations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/confirmations.js b/components/confirmations.js index fd93cf1..ef59551 100644 --- a/components/confirmations.js +++ b/components/confirmations.js @@ -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 || '' }));