mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
set locale for tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { DateTime } from 'luxon'
|
||||
import { DateTime, Settings } from 'luxon'
|
||||
|
||||
export default class DateTimeWrapper {
|
||||
|
||||
@@ -23,6 +23,10 @@ export default class DateTimeWrapper {
|
||||
}
|
||||
|
||||
static getCurrentDatetimeAsString() {
|
||||
return DateTime.local().toString()
|
||||
return DateTime.now().toString()
|
||||
}
|
||||
|
||||
static setDefaultLocale(locale) {
|
||||
Settings.defaultLocale = locale
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user