mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
fix date formatting breaking user details popvoer (#2465)
This commit is contained in:
committed by
Kim Gardner
parent
aa873559d0
commit
abb793b16a
@@ -52,12 +52,12 @@ const UserStatusDetailsContainer: FunctionComponent<Props> = ({ user }) => {
|
||||
<div>
|
||||
<Localized
|
||||
id="userDetails-banned-on"
|
||||
$timestamp={formatter.format(activeBan.createdAt)}
|
||||
$timestamp={formatter.format(new Date(activeBan.createdAt))}
|
||||
strong={<strong />}
|
||||
>
|
||||
<Typography>
|
||||
<strong>Banned on </strong>{" "}
|
||||
{formatter.format(activeBan.createdAt)}
|
||||
{formatter.format(new Date(activeBan.createdAt))}
|
||||
</Typography>
|
||||
</Localized>
|
||||
{activeBan.createdBy && (
|
||||
@@ -91,21 +91,25 @@ const UserStatusDetailsContainer: FunctionComponent<Props> = ({ user }) => {
|
||||
<Localized
|
||||
id="userDetails-suspension-start"
|
||||
strong={<strong />}
|
||||
$timestamp={formatter.format(activeSuspension.from.start)}
|
||||
$timestamp={formatter.format(
|
||||
new Date(activeSuspension.from.start)
|
||||
)}
|
||||
>
|
||||
<Typography>
|
||||
<strong>Start: </strong>
|
||||
{formatter.format(activeSuspension.from.start)}
|
||||
{formatter.format(new Date(activeSuspension.from.start))}
|
||||
</Typography>
|
||||
</Localized>
|
||||
<Localized
|
||||
strong={<strong />}
|
||||
$timestamp={formatter.format(activeSuspension.from.finish)}
|
||||
id="userDetails-suspension-start"
|
||||
$timestamp={formatter.format(
|
||||
new Date(activeSuspension.from.finish)
|
||||
)}
|
||||
id="userDetails-suspension-finish"
|
||||
>
|
||||
<Typography>
|
||||
<strong>End: </strong>
|
||||
{formatter.format(activeSuspension.from.finish)}
|
||||
{formatter.format(new Date(activeSuspension.from.finish))}
|
||||
</Typography>
|
||||
</Localized>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user