Fix Jalali year-0 crash on /tasks from invalid target_date.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-22 17:56:39 +03:30
co-authored by Cursor
parent dc276dfbb5
commit 6caee30d9b
7 changed files with 37 additions and 15 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
<label class="pb-3">تاریخ تولد:</label>
<div class="flex flex-col gap-1">
<input type="text" id="birthday_display"
value="{{ $user->birthday ? \Morilog\Jalali\Jalalian::fromCarbon($user->birthday)->format('Y/m/d') : '' }}"
value="{{ $user->birthday ? \App\Support\JalaliHelper::format($user->birthday) : '' }}"
placeholder="اختیاری — انتخاب تاریخ"
class="border border-gray-300 rounded-md text-center"
autocomplete="off" readonly>