metaview: fix wrong date tz

pull/221/head
Varun Patil 2022-11-09 22:25:41 -08:00
parent 8a002ac331
commit a85b06bac0
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ export default class Metadata extends Mixins(GlobalMixin) {
const dt = this.exif["DateTimeOriginal"] || this.exif["CreateDate"]; const dt = this.exif["DateTimeOriginal"] || this.exif["CreateDate"];
if (!dt) return null; if (!dt) return null;
const m = moment(dt, "YYYY:MM:DD HH:mm:ss"); const m = moment.utc(dt, "YYYY:MM:DD HH:mm:ss");
if (!m.isValid()) return null; if (!m.isValid()) return null;
m.locale(getCanonicalLocale()); m.locale(getCanonicalLocale());
return m; return m;