mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-14 15:00:07 +08:00
Return postDate as a Date object
This commit is contained in:
parent
788f34ba7a
commit
ab9baeafc6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user