diff --git a/components/groups.js b/components/groups.js index 5edcad6..29e947c 100644 --- a/components/groups.js +++ b/components/groups.js @@ -369,7 +369,7 @@ SteamCommunity.prototype.getGroupHistory = function(gid, page, callback) { var date = dateParts[0].trim().replace(/(st|nd|th)$/, '').trim() + ', ' + currentYear; var time = dateParts[1].trim().replace(/(am|pm)/, ' $1'); - date = new Date(date + ' ' + time); + date = new Date(date + ' ' + time + ' UTC'); // If this date is in the future, or it's later than the previous one, decrement the year if(date.getTime() > lastDate) { diff --git a/index.js b/index.js index 3f66af5..a765b55 100644 --- a/index.js +++ b/index.js @@ -23,6 +23,9 @@ function SteamCommunity(localAddress) { // English this._jar.setCookie(Request.cookie('Steam_Language=english'), 'https://steamcommunity.com'); + + // UTC + this._jar.setCookie(Request.cookie('timezoneOffset=0,0'), 'https://steamcommunity.com'); } SteamCommunity.prototype.login = function(details, callback) {