nexaas-ui-components 1.0.58 → 1.0.59

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
@@ -833,7 +833,10 @@ var DatePickerInput = React5.forwardRef(
833
833
  value: normalizedValue,
834
834
  locale: "pt-BR",
835
835
  highlightCurrentDay: true,
836
- formatDate: (value) => dateFns.format(value, dateFnsFormat),
836
+ formatDate: (value) => {
837
+ const adjusted = new Date(value.getTime() + value.getTimezoneOffset() * 6e4);
838
+ return dateFns.format(adjusted, dateFnsFormat);
839
+ },
837
840
  parseDate: (value) => dateFns.parse(value, dateFnsFormat, /* @__PURE__ */ new Date()),
838
841
  maxDate: maxDate || new Date((/* @__PURE__ */ new Date()).getFullYear() + 5, 11, 31),
839
842
  minDate: minDate || new Date(1900, 0, 1)