metaview: fix wrong date tz
parent
8a002ac331
commit
a85b06bac0
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue