nexaas-ui-components 1.0.59 → 1.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -822,10 +822,16 @@ var DatePickerInput = React5.forwardRef(
822
822
  disabled,
823
823
  onChange: (e, isUserChange) => {
824
824
  if (isUserChange) {
825
- field.onChange(e);
825
+ let value = e;
826
+ if (e) {
827
+ const date = new Date(e);
828
+ date.setUTCHours(23, 59, 59, 0);
829
+ value = date.toISOString();
830
+ }
831
+ field.onChange(value);
826
832
  setShowCalendar(false);
827
833
  if (onChangeFunction) {
828
- onChangeFunction(e);
834
+ onChangeFunction(value);
829
835
  }
830
836
  setInvalidDate(false);
831
837
  }