Revert using chrono to parse the date

This commit is contained in:
Jarzon 2017-02-01 12:03:34 -05:00
parent 12f1ddf6a0
commit b3174b9f0b
2 changed files with 2 additions and 4 deletions

View File

@ -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_", "");

View File

@ -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"