fix: update date formatting to Italian locale in email and user views
This commit is contained in:
parent
9b18b20621
commit
07132e8cd6
5 changed files with 5 additions and 5 deletions
|
|
@ -29,7 +29,7 @@ const ContattoAdminEmail = ({
|
|||
|
||||
<Section className="px-5 text-left text-base md:px-12">
|
||||
<Row>
|
||||
<Text>Data: {new Date().toLocaleString()}</Text>
|
||||
<Text>Data: {new Date().toLocaleString("it-IT")}</Text>
|
||||
<Text>Nome: {nome}</Text>
|
||||
<Text>Cognome: {cognome}</Text>
|
||||
<Text>Email: {email}</Text>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const ContattoAnnuncioEmail = ({
|
|||
|
||||
<Section className="px-5 text-left text-base md:px-12">
|
||||
<Row>
|
||||
<Text>Data: {new Date().toLocaleString()}</Text>
|
||||
<Text>Data: {new Date().toLocaleString("it-IT")}</Text>
|
||||
<Text>Nome: {nome}</Text>
|
||||
<Text>Annuncio: {codice}</Text>
|
||||
<Text>Telefono: {telefono}</Text>
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ function ChartTooltipContent({
|
|||
</div>
|
||||
{item.value && (
|
||||
<span className="font-medium font-mono text-foreground tabular-nums">
|
||||
{item.value.toLocaleString()}
|
||||
{item.value.toLocaleString("it-IT")}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ const EditUser: NextPageWithLayout<EditUserProps> = ({
|
|||
<Separator />
|
||||
<div className="flex flex-col gap-2">
|
||||
<h4 className="font-medium">Utente registrato il:</h4>
|
||||
<p>{userData.created_at?.toLocaleString()}</p>
|
||||
<p>{userData.created_at?.toLocaleString("it-IT")}</p>
|
||||
{userData.isAdminMade && <p>Utente creato da Admin</p>}
|
||||
</div>
|
||||
</Tabs>
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ const Dashboard: NextPageWithLayout = () => {
|
|||
</Card>
|
||||
<div className="flex flex-col gap-2 p-2">
|
||||
<h4 className="font-medium">Ti sei registrato il:</h4>
|
||||
<p>{userData.created_at?.toLocaleString()}</p>
|
||||
<p>{userData.created_at?.toLocaleString("it-IT")}</p>
|
||||
</div>
|
||||
</TabsContent>
|
||||
<TabsContent className="h-full space-y-6" value="anagrafica">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue