mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
Update DateFilter.tsx
This commit is contained in:
parent
4c3f3cbc71
commit
e9f657492d
1 changed files with 3 additions and 3 deletions
|
|
@ -177,9 +177,9 @@ const CustomRange = ({ startDate, endDate, unit, onClick }) => {
|
|||
<>{intl.formatDate(startDate, { year: 'numeric', month: 'long' })}</>
|
||||
) : (
|
||||
<>
|
||||
{intl.formatDate(startDate, { dateStyle: 'medium' })}
|
||||
{!isSameDay(startDate, endDate) &&
|
||||
` — ${intl.formatDate(endDate, { dateStyle: 'medium' })}`}
|
||||
{isSameDay(startDate, endDate)
|
||||
? intl.formatDate(startDate, { dateStyle: 'medium' })
|
||||
: intl.formatDateTimeRange(startDate, endDate)}
|
||||
</>
|
||||
)}
|
||||
</Text>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue