fix(quotes): quote date (تاریخ پیشنهاد) defaults to current time, not midnight
Wizard Step 5 initializes the quote date with the client's current local time instead of 00:00, and the Jalali datepicker's hour/minute controls default to the current clock whenever no explicit time is configured (clicking «امروز» already used the current time). Date-only consumers are unaffected (times are stripped at the API layer).
This commit is contained in:
@@ -73,8 +73,8 @@ export function WizardPage() {
|
||||
const [assignment, setAssignment] = useState<Record<string, string[]>>({});
|
||||
|
||||
const [quoteDate, setQuoteDate] = useState<string | null>(() => {
|
||||
const d = new Date();
|
||||
return new Date(d.getFullYear(), d.getMonth(), d.getDate()).toISOString();
|
||||
// تاریخ پیشنهاد: همین الان (ساعت و دقیقهی فعلی) — نه نیمهشب
|
||||
return new Date().toISOString();
|
||||
});
|
||||
const [expiryDate, setExpiryDate] = useState<string | null>(null);
|
||||
const [notes, setNotes] = useState("");
|
||||
|
||||
Reference in New Issue
Block a user