mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
localise dates
This commit is contained in:
@@ -2,9 +2,9 @@ import DateTimeWrapper from './date-time-wrapper'
|
||||
|
||||
export default class Formatter {
|
||||
|
||||
static formatDate({ start, end }) {
|
||||
const startDateTime = new DateTimeWrapper(start)
|
||||
const endDateTime = new DateTimeWrapper(end)
|
||||
static formatDate({ locale, start, end }) {
|
||||
const startDateTime = new DateTimeWrapper({ locale, text: start })
|
||||
const endDateTime = new DateTimeWrapper({ locale, text: end })
|
||||
let dateText = startDateTime.getShortDate()
|
||||
dateText += ' ' + startDateTime.get24Time()
|
||||
dateText += ' - '
|
||||
|
Reference in New Issue
Block a user