Files
payload/test
Paul a9ff375cc0 fix(ui): clear miliseconds in date fields unless theyre explicitly provided in the display format (#12650)
Fixes https://github.com/payloadcms/payload/issues/12532

Normally we clear any values when picking a date such that your hour,
minutes and seconds are normalised to 0 unless specified. Equally when
you specify a time we will normalise seconds so that only minutes are
relevant as configured.

Miliseconds were never removed from the actual date value and whatever
milisecond the editor was in was that value that was being added.
There's this [abandoned
issue](https://github.com/Hacker0x01/react-datepicker/issues/1991) from
the UI library `react-datepicker` as it's not something configurable.

This fixes that problem by making sure that miliseconds are always 0
unless the `displayFormat` includes `SSS` as an intention to show and
customise them.

This also caused [issues with scheduled
jobs](https://github.com/payloadcms/payload/issues/12566) if things were
slightly out of order or not being scheduled in the expected time
interval.
2025-06-03 02:44:52 -07:00
..
2025-05-22 10:04:45 -04:00
2025-05-22 10:04:45 -04:00
2025-05-22 10:04:45 -04:00
2024-10-30 17:56:50 +00:00
2024-08-13 12:54:33 -04:00
2025-05-22 10:04:45 -04:00
2025-05-22 10:04:45 -04:00
2024-07-23 13:44:44 -04:00
2025-05-22 10:04:45 -04:00
2024-05-25 15:45:05 +00:00
2025-03-05 19:14:35 +00:00