fix date suffix

This commit is contained in:
daniel-j 2020-03-04 10:55:45 +01:00
parent c6a8875aa5
commit ab48eb4d2d
3 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "fimfic2epub",
"version": "1.7.41",
"version": "1.7.42",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -1,6 +1,6 @@
{
"name": "fimfic2epub",
"version": "1.7.41",
"version": "1.7.42",
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
"author": "djazz",
"license": "MIT",

View file

@ -19,7 +19,7 @@ function nth (d) {
export function prettyDate (d) {
// format: 27th Oct 2011
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
return d.getDate() + nth(d) + ' ' + months[d.getMonth()].substring(0, 3) + ' ' + d.getFullYear()
return d.getDate() + nth(d.getDate()) + ' ' + months[d.getMonth()].substring(0, 3) + ' ' + d.getFullYear()
}
const metaGenerator = () => m('meta', { name: 'generator', content: 'Generated by fimfic2epub v' + FIMFIC2EPUB_VERSION + ' at ' + prettyDate(new Date()) })