Skip to content

Commit 76c34be

Browse files
committed
refactor: use toDateTimeString
1 parent eb54799 commit 76c34be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Authentication/Actions/Email2FA.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function handle(IncomingRequest $request)
7575

7676
$ipAddress = $request->getIPAddress();
7777
$userAgent = (string) $request->getUserAgent();
78-
$date = Time::now()->toLocalizedString('MMM d, yyyy');
78+
$date = Time::now()->toDateTimeString();
7979

8080
// Send the user an email with the code
8181
$email = emailer()->setFrom(setting('Email.fromEmail'), setting('Email.fromName') ?? '');

src/Authentication/Actions/EmailActivator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function show(): string
4949

5050
$ipAddress = $request->getIPAddress();
5151
$userAgent = (string) $request->getUserAgent();
52-
$date = Time::now()->toLocalizedString('MMM d, yyyy');
52+
$date = Time::now()->toDateTimeString();
5353

5454
// Send the email
5555
$email = emailer()->setFrom(setting('Email.fromEmail'), setting('Email.fromName') ?? '');

0 commit comments

Comments
 (0)