diff --git a/ogp.js b/ogp.js index acd48b2..29703f2 100644 --- a/ogp.js +++ b/ogp.js @@ -1,4 +1,5 @@ const Mustache = require('mustache'); +const DateTime = require('luxon').DateTime; const github = require('./package.json').homepage; const { formatBytes } = require('./utils'); @@ -54,7 +55,7 @@ class OpenGraph { }) .replace(new RegExp('&size', 'g'), formatBytes(this.size)) .replace(new RegExp('&filename', 'g'), this.filename) - .replace(new RegExp('×tamp', 'g'), this.timestamp); + .replace(new RegExp('×tamp', 'g'), DateTime.fromMillis(this.timestamp).toLocaleString(DateTime.DATETIME_MED)); } }