Opened 8 years ago
Closed 5 years ago
#40499 closed enhancement (wontfix)
the_archive_title() doesn't honour date format setting
Reported by: | henry.wright | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Formatting | Keywords: | |
Focuses: | template | Cc: |
Description
the_archive_title()
will output a title such as the following if the current page is a date archive.
Day: April 12, 2017
This date isn't in the format as set in Settings > General.
Change History (5)
#1
follow-up:
↓ 3
@
8 years ago
- Component changed from General to Formatting
- Focuses template added
- Keywords close added
#3
in reply to:
↑ 1
@
8 years ago
Replying to johnbillion:
In this case, the date format is explicitly set to
F j, Y
as it's a day archive. For month archives it's set toF Y
. I don't think it makes sense for the date format setting to be used here.
Why not? This is poor internationalisation.
For day archive it should be used. For month, either a special filterable setting or just 'Y-m'.
Note: See
TracTickets for help on using
tickets.
The date and time format settings have always been a little confusing because they're not actually used in many places in core and in themes.
In this case, the date format is explicitly set to
F j, Y
as it's a day archive. For month archives it's set toF Y
. I don't think it makes sense for the date format setting to be used here.