Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom date format support in blueprints.yaml #25

Open
dragonandy opened this issue May 9, 2019 · 1 comment
Open

custom date format support in blueprints.yaml #25

dragonandy opened this issue May 9, 2019 · 1 comment
Labels

Comments

@dragonandy
Copy link

dragonandy commented May 9, 2019

The blueprints.yaml only support limited type of date format
some countries use different date format for example:
China uses format like "2019年-05月-08日"
Japan uses format like "令和元年5月" etc. very tricky though...

maybe add more options for the users using the date format like 'Y-m':"2019-05"
or a custom input box to input the format settings in the web interface

    date_display_format:
      type: select
      size: medium
      classes: fancy
      label: Date Format
      default: 'jS M Y'
      options:
        'F jS Y': "January 1st 2014"
        'l jS of F': "Monday 1st of January"
        'D, m M Y': "Mon, 01 Jan 2014"
        'd-m-y': "01-01-14"
        'jS M Y': "10th Feb 2014"
        'F Y': "Jan 2015"
@rhukster
Copy link
Member

rhukster commented May 9, 2019

While yes, there is a limited set of choices in the dropdown of the admin, you can set the format directly in your user/config/plugins/archives.yaml file. Be careful though, if you do this, don't try to save from admin or it will not find your format in the select, and set the first option and overwrite your custom format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants