invoiceninja / ui

Invoice Ninja: Web admin portal built with React
https://app.invoicing.co
Other
52 stars 45 forks source link

[Cleanup] Adding Max Date For Date Type Input Fields #1754

Closed Civolilah closed 2 months ago

Civolilah commented 2 months ago

@beganovich @turbo124 The PR includes adding the 9999-12-31 date as the maximum date for date input fields to prevent invalid dates larger than this one, which are unrealistic. Let me know your thoughts.

Civolilah commented 2 months ago

@turbo124 Currently, we do not have any localization on input fields of type "date". I implemented it a long time ago, but I was on vacation, and you found some issues there. I'm not sure if we should plan on implementing localization on the date picker to align the format with what is entered in the Localization settings page. Also, I believe that implementing military_time will be necessary to format time in military or non-military time. Currently, all input fields of type date have the same format, regardless of what the user enters in the Localization settings. Let me know your thoughts.