Skip to content

Journal's date format is not used on stats page #7889

Open

Description

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:

  1. Go to Settings > Website > Setup > Date/Time
  2. Select a date format other than YYYY-MM-DD
  3. Go to Stastics > Articles
  4. See the date range displayed in YYYY-MM-DD
  5. Change the date range.
  6. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Bug:1:LowA bug that does not have a severe consequence or affects a small number of users.Try MeThis issue might be good for a new contributor. Can you help us?

Type

No type

Projects

  • Status

    Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions