Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit 209389f

Browse files
martinpucalajirutka
authored andcommitted
Change date and time formats to international for English language
1 parent 14ae385 commit 209389f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Event.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ class EventBox extends React.Component {
114114
}
115115

116116
displayTime (props) {
117-
const startsAt = tzMoment(props.data.startsAt).format('LT')
118-
const endsAt = tzMoment(props.data.endsAt).format('LT')
117+
const startsAt = tzMoment(props.data.startsAt).format('HH:mm')
118+
const endsAt = tzMoment(props.data.endsAt).format('HH:mm')
119119

120120
return `${startsAt}${endsAt}`
121121
}

src/components/WeekNav.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class WeekNav extends React.Component {
5454
// u2013 : – \u2009 :  
5555
return `${weekStart.format('D.\u2009M. ')} \u2013 ${weekEnd.format('D.\u2009M.\u2009YYYY')}`
5656
} else {
57-
return `${weekStart.format('M/D')} \u2013 ${weekEnd.format('M/D/YYYY')}`
57+
return `${weekStart.format('YYYY-MM-DD')} \u2013 ${weekEnd.format('YYYY-MM-DD')}`
5858
}
5959
} else {
6060
return `${currDayM.format('dddd D.\u2009MMMM')}`

0 commit comments

Comments
 (0)