Description
openedon Apr 25, 2022
Describe the bug
When viewing the article or editorial stats page, the date range shows in the format YYYY-MM-DD. This should show the date range in the format selected by the journal.
To Reproduce
Steps to reproduce the behavior:
- Go to Settings > Website > Setup > Date/Time
- Select a date format other than YYYY-MM-DD
- Go to Stastics > Articles
- See the date range displayed in YYYY-MM-DD
- Change the date range.
- See the date range displayed in YYYY-MM-DD.
What application are you using?
3.3, main
Additional information
Reported in the forum.
There's already some code written to use moment.js
to change a YYYY-MM-DD
into the format selected by the journal. See the DateTimeForm. This needs to be turned into a Vue.js mixin or some other global function so that it can be used in more than one place.
When making this change, the input format for selecting a custom date range must remain YYYY-MM-DD
. That's what the server expects and it won't be able to recognize a date in another format.
Metadata
Assignees
Labels
Type
Projects
Status
Todo