Return postDate as a Date object

This commit is contained in:
Alex Corn 2023-06-24 02:48:26 -04:00
parent 788f34ba7a
commit ab9baeafc6
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

View File

@ -79,7 +79,7 @@ SteamCommunity.prototype.getSteamSharedFile = function(sharedFileId, callback) {
// Find postDate and convert to timestamp
let posted = detailsStatsObj["Posted"].trim();
sharedfile.postDate = Date.parse(Helpers.decodeSteamTime(posted)); // Pass String into helper and parse the returned String to get a Unix timestamp
sharedfile.postDate = Helpers.decodeSteamTime(posted);
// Find resolution if artwork or screenshot