mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-30 19:00:28 +08:00
Revert using chrono to parse the date
This commit is contained in:
parent
12f1ddf6a0
commit
b3174b9f0b
@ -2,7 +2,6 @@ var SteamCommunity = require('../index.js');
|
||||
var SteamID = require('steamid');
|
||||
var xml2js = require('xml2js');
|
||||
var Cheerio = require('cheerio');
|
||||
var chrono = require('chrono-node');
|
||||
|
||||
SteamCommunity.prototype.getGroupMembers = function(gid, callback, members, link, addresses, addressIdx) {
|
||||
members = members || [];
|
||||
@ -546,7 +545,7 @@ SteamCommunity.prototype.getAllGroupComments = function(gid, from, count, callba
|
||||
var $selector = $(this).find(".commentthread_author_link");
|
||||
comment.authorName = $($selector).find("bdi").text();
|
||||
comment.authorId = $($selector).attr("href").replace(/http:\/\/steamcommunity.com\/(id|profiles)\//, "");
|
||||
comment.date = chrono.parseDate($(this).find(".commentthread_comment_timestamp").text().trim());
|
||||
comment.date = $(this).find(".commentthread_comment_timestamp").text().trim();
|
||||
|
||||
$selector = $(this).find(".commentthread_comment_text");
|
||||
comment.commentId = $($selector).attr("id").replace("comment_content_", "");
|
||||
|
@ -19,8 +19,7 @@
|
||||
"xml2js": "^0.4.11",
|
||||
"cheerio": "0.22.0",
|
||||
"async": "^2.1.4",
|
||||
"steam-totp": "^1.3.0",
|
||||
"chrono-node": "^1.2.5"
|
||||
"steam-totp": "^1.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user