diff --git a/index.js b/index.js index 4680eae..a6f22b8 100644 --- a/index.js +++ b/index.js @@ -253,6 +253,8 @@ morgan.token('date', function getDateToken (req, res, format) { return date.toISOString() case 'web': return date.toUTCString() + case 'local': + return date.toLocaleString() } }) diff --git a/package.json b/package.json index 7775fe6..86aa0f1 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "on-headers": "~1.0.1" }, "devDependencies": { - "eslint": "5.9.0", + "eslint": "5.10.0", "eslint-config-standard": "12.0.0", "eslint-plugin-import": "2.14.0", "eslint-plugin-markdown": "1.0.0-rc.0",