When creating a new invoice, the "Datum vystavení" (issue date) field was left blank, requiring the user to manually pick today's date every time.
What changed
New invoices now prefill the issue date input with today's local date when the editor is cleared (clearInvoiceEditor).
toDateInputValue now builds the YYYY-MM-DD string from local date components instead of toISOString(), avoiding a potential off-by-one-day shift for users in timezones ahead of UTC (e.g. late evening local time rolling to the next UTC day).
Existing invoices are unaffected since loadInvoiceIntoEditor still uses the stored issueDate value.
## Why
When creating a new invoice, the "Datum vystavení" (issue date) field was left blank, requiring the user to manually pick today's date every time.
## What changed
- New invoices now prefill the issue date input with today's local date when the editor is cleared (`clearInvoiceEditor`).
- `toDateInputValue` now builds the `YYYY-MM-DD` string from local date components instead of `toISOString()`, avoiding a potential off-by-one-day shift for users in timezones ahead of UTC (e.g. late evening local time rolling to the next UTC day).
Existing invoices are unaffected since `loadInvoiceIntoEditor` still uses the stored `issueDate` value.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
When creating a new invoice, the "Datum vystavení" (issue date) field was left blank, requiring the user to manually pick today's date every time.
What changed
clearInvoiceEditor).toDateInputValuenow builds theYYYY-MM-DDstring from local date components instead oftoISOString(), avoiding a potential off-by-one-day shift for users in timezones ahead of UTC (e.g. late evening local time rolling to the next UTC day).Existing invoices are unaffected since
loadInvoiceIntoEditorstill uses the storedissueDatevalue.