Use UTC times

This commit is contained in:
Alexander Corn 2015-08-07 00:28:24 -04:00
parent ea88c1cda4
commit 07c8c724e7
2 changed files with 4 additions and 1 deletions

View File

@ -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) {

View File

@ -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) {