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"];
|
||||
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;
|
||||
m.locale(getCanonicalLocale());
|
||||
return m;
|
||||
|
|
Loading…
Reference in New Issue