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">
|
<Section className="px-5 text-left text-base md:px-12">
|
||||||
<Row>
|
<Row>
|
||||||
<Text>Data: {new Date().toLocaleString()}</Text>
|
<Text>Data: {new Date().toLocaleString("it-IT")}</Text>
|
||||||
<Text>Nome: {nome}</Text>
|
<Text>Nome: {nome}</Text>
|
||||||
<Text>Cognome: {cognome}</Text>
|
<Text>Cognome: {cognome}</Text>
|
||||||
<Text>Email: {email}</Text>
|
<Text>Email: {email}</Text>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ const ContattoAnnuncioEmail = ({
|
||||||
|
|
||||||
<Section className="px-5 text-left text-base md:px-12">
|
<Section className="px-5 text-left text-base md:px-12">
|
||||||
<Row>
|
<Row>
|
||||||
<Text>Data: {new Date().toLocaleString()}</Text>
|
<Text>Data: {new Date().toLocaleString("it-IT")}</Text>
|
||||||
<Text>Nome: {nome}</Text>
|
<Text>Nome: {nome}</Text>
|
||||||
<Text>Annuncio: {codice}</Text>
|
<Text>Annuncio: {codice}</Text>
|
||||||
<Text>Telefono: {telefono}</Text>
|
<Text>Telefono: {telefono}</Text>
|
||||||
|
|
|
||||||
|
|
@ -234,7 +234,7 @@ function ChartTooltipContent({
|
||||||
</div>
|
</div>
|
||||||
{item.value && (
|
{item.value && (
|
||||||
<span className="font-medium font-mono text-foreground tabular-nums">
|
<span className="font-medium font-mono text-foreground tabular-nums">
|
||||||
{item.value.toLocaleString()}
|
{item.value.toLocaleString("it-IT")}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ const EditUser: NextPageWithLayout<EditUserProps> = ({
|
||||||
<Separator />
|
<Separator />
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
<h4 className="font-medium">Utente registrato il:</h4>
|
<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>}
|
{userData.isAdminMade && <p>Utente creato da Admin</p>}
|
||||||
</div>
|
</div>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ const Dashboard: NextPageWithLayout = () => {
|
||||||
</Card>
|
</Card>
|
||||||
<div className="flex flex-col gap-2 p-2">
|
<div className="flex flex-col gap-2 p-2">
|
||||||
<h4 className="font-medium">Ti sei registrato il:</h4>
|
<h4 className="font-medium">Ti sei registrato il:</h4>
|
||||||
<p>{userData.created_at?.toLocaleString()}</p>
|
<p>{userData.created_at?.toLocaleString("it-IT")}</p>
|
||||||
</div>
|
</div>
|
||||||
</TabsContent>
|
</TabsContent>
|
||||||
<TabsContent className="h-full space-y-6" value="anagrafica">
|
<TabsContent className="h-full space-y-6" value="anagrafica">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue