Fixed timezones being incorrect in trade history entries

This commit is contained in:
Alexander Corn 2016-08-31 22:20:24 -04:00
parent 3139aec463
commit 79543187f0

View File

@ -64,7 +64,7 @@ SteamCommunity.prototype.getInventoryHistory = function(options, callback) {
time = (timeMatch[1] < 10 ? '0' : '') + timeMatch[1] + ':' + timeMatch[2] + ':00';
trade.date = new Date(item.find('.tradehistory_date').html() + ' ' + time);
trade.date = new Date(item.find('.tradehistory_date').html() + ' ' + time + ' UTC');
trade.partnerName = item.find('.tradehistory_event_description a').html();
trade.partnerSteamID = null;
trade.partnerVanityURL = null;