Skip to content

Commit f42b767

Browse files
fix: incorrect 24 hour format comment example (#15649)
### What? The code comment for type `CollectionConfig.versions.drafts.schedulePublish.timeFormat` suggests using 'hh:mm' for a 24 hour clock format. I changed this comment to instead suggest 'HH:mm'. ### Why? The lowercase 'hh' makes a 12 hour format, not the suggested 24 hour format. ### How? I replaced the comment to suggest using uppercase 'HH' instead. ```diff - * @example 'hh:mm' will give a 24 hour clock + * @example 'HH:mm' will give a 24 hour clock ``` Co-authored-by: Paul Popus <paul@payloadcms.com>
1 parent 122f4c1 commit f42b767

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/payload/src/versions/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type SchedulePublish = {
1919
/**
2020
* Define a date format to use for the time picker.
2121
*
22-
* @example 'hh:mm' will give a 24 hour clock
22+
* @example 'HH:mm' will give a 24 hour clock
2323
*
2424
* @default 'h:mm aa' which is a 12 hour clock
2525
*/

0 commit comments

Comments
 (0)