1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

let luxon take zone from string

This commit is contained in:
Daniel Waxweiler
2021-05-05 10:13:16 +02:00
parent bc86f8e7c9
commit 22c0b22b8e
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import { DateTime } from 'luxon'
export default class DateTimeWrapper {
constructor({ locale, text }) {
this.dateTime = DateTime.fromISO(text, { locale })
this.dateTime = DateTime.fromISO(text, { locale, setZone: true })
}
getShortDate() {