better date time format for profile

This commit is contained in:
Notoric 2025-03-06 21:33:46 +00:00
parent 9b35f72ed0
commit 20c2722eaf
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
<label for="email">Email</label>
<input type="email" name="email" id="email" value="{{ Auth::user()->email }}" required>
<label for="created_at">Created On</label>
<input type="text" name="created_at" id="created_at" class="unmodifiable" value="{{ explode( " ", Auth::user()->created_at)[0] }}" required readonly>
<input type="text" name="created_at" id="created_at" class="unmodifiable" value="{{ Carbon\Carbon::parse(explode( " ", Auth::user()->created_at)[0])->format('D jS F Y') }}" required readonly>
<div class="button-row">
<button type="submit">Save</button>
<a href="profile/change-password"><button type="button">Change Password</button></a>