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

Commit

Permalink
Change date and time formats to international for English language
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpucala authored and jirutka committed Jul 27, 2022
1 parent 14ae385 commit 209389f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Event.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ class EventBox extends React.Component {
}

displayTime (props) {
const startsAt = tzMoment(props.data.startsAt).format('LT')
const endsAt = tzMoment(props.data.endsAt).format('LT')
const startsAt = tzMoment(props.data.startsAt).format('HH:mm')
const endsAt = tzMoment(props.data.endsAt).format('HH:mm')

return `${startsAt}${endsAt}`
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/WeekNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class WeekNav extends React.Component {
// u2013 : – \u2009 :  
return `${weekStart.format('D.\u2009M. ')} \u2013 ${weekEnd.format('D.\u2009M.\u2009YYYY')}`
} else {
return `${weekStart.format('M/D')} \u2013 ${weekEnd.format('M/D/YYYY')}`
return `${weekStart.format('YYYY-MM-DD')} \u2013 ${weekEnd.format('YYYY-MM-DD')}`
}
} else {
return `${currDayM.format('dddd D.\u2009MMMM')}`
Expand Down

0 comments on commit 209389f

Please sign in to comment.