Opened 2 years ago
Last modified 2 years ago
#55503 new defect (bug)
Post Date display issue if we set empty from General Settings page
Reported by: | rishishah | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Date/Time | Keywords: | |
Focuses: | administration | Cc: |
Description
Hello,
I have faced one issue with the post date field on the backend side.
If we set empty Date and Time format from the General Settings page then the post date will be empty displaying on the edit screen of an article(any post type).
We need to set any default date and time format to display or make the Date format and Time format field required. If any admin set it empty mistakenly then it will take hours to figure out the root cause of the issue.
Attachments (3)
Change History (5)
#2
@
2 years ago
Technically empty string is a valid date format. I would be wary of introducing a special case for it, given it is long established feature and upstream PHP functions do not act like that.
Also I am not sure anyone in the wild uses it to blank output purposely, but can't be sure they are not either.
Applied patch to add default value if anyone kept blank Date and Time format field.