Remove setLocale from DateTime invokations

Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
This commit is contained in:
Erik Engervall
2021-05-06 14:04:35 +02:00
parent 570dcd2782
commit 2d69bfe745
2 changed files with 5 additions and 9 deletions
@@ -69,9 +69,7 @@ export function Row({ baseVersion, releaseStat }: RowProps) {
<TableCell>
{releaseStat.createdAt
? DateTime.fromISO(releaseStat.createdAt)
.setLocale('sv-SE')
.toFormat('yyyy-MM-dd')
? DateTime.fromISO(releaseStat.createdAt).toFormat('yyyy-MM-dd')
: '-'}
</TableCell>
@@ -83,9 +83,7 @@ export function ReleaseTime({ releaseStat }: ReleaseTimeProps) {
<Typography variant="body1">
{releaseStat.versions.length === 0 ? '-' : 'Release completed '}
{releaseTimes.value?.endDate &&
DateTime.fromISO(releaseTimes.value.endDate)
.setLocale('sv-SE')
.toFormat('yyyy-MM-dd')}
DateTime.fromISO(releaseTimes.value.endDate).toFormat('yyyy-MM-dd')}
</Typography>
</Box>
@@ -117,9 +115,9 @@ export function ReleaseTime({ releaseStat }: ReleaseTimeProps) {
<Typography variant="body1">
Release Candidate created{' '}
{releaseTimes.value?.startDate &&
DateTime.fromISO(releaseTimes.value.startDate)
.setLocale('sv-SE')
.toFormat('yyyy-MM-dd')}
DateTime.fromISO(releaseTimes.value.startDate).toFormat(
'yyyy-MM-dd',
)}
</Typography>
</Box>
</Wrapper>