mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-28 09:10:25 +08:00
Use UTC times
This commit is contained in:
parent
ea88c1cda4
commit
07c8c724e7
@ -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) {
|
||||
|
3
index.js
3
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user