diff --git a/src/FimFic2Epub.js b/src/FimFic2Epub.js index feb908c..8eb269b 100644 --- a/src/FimFic2Epub.js +++ b/src/FimFic2Epub.js @@ -727,11 +727,9 @@ class FimFic2Epub extends Emitter { let extraPos = html.indexOf('
') html = html.substring(extraPos + 30) - ma = html.match(/First Published<\/span>
(.*?)<\/span>/) + ma = html.match(/.*?data-time="(.*?)".*?<\/span>/) if (ma) { - let date = ma[1] - date = date.replace(/^(\d+)[a-z]+? ([a-zA-Z]+? \d+)$/, '$1 $2') - this.storyInfo.publishDate = (new Date(date).getTime() / 1000) | 0 + this.storyInfo.publishDate = +ma[1] } html = html.substring(0, html.indexOf('