fix: explicitly set the locale for toLocaleDateString()

This commit is contained in:
TheClashFruit 2024-08-29 23:55:24 +02:00
parent ba5a9ff29c
commit 6ef13ca090
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ export default function PrivacyPolicy() {
<h1>Privacy Policy</h1> <h1>Privacy Policy</h1>
<p> <p>
<strong>Effective Date</strong>: {new Date('2024-08-29T02:00:00.000Z').toLocaleDateString()} <strong>Effective Date</strong>: {new Date('2024-08-29T02:00:00.000Z').toLocaleDateString('en-GB')}
</p> </p>
<h2 id="introduction">1. Introduction</h2> <h2 id="introduction">1. Introduction</h2>

View file

@ -14,7 +14,7 @@ export default function TermsOfService() {
<h1>Terms of Service</h1> <h1>Terms of Service</h1>
<p> <p>
<strong>Effective Date</strong>: {new Date('2024-08-29T02:00:00.000Z').toLocaleDateString()} <strong>Effective Date</strong>: {new Date('2024-08-29T02:00:00.000Z').toLocaleDateString('en-GB')}
</p> </p>
<h2 id="acceptance-of-terms">1. Acceptance of Terms</h2> <h2 id="acceptance-of-terms">1. Acceptance of Terms</h2>