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

It's impossible to pick time "00:00" using time picker (24-hour format) #28

Closed
cwayfinder opened this issue Jun 19, 2017 · 2 comments
Closed

Comments

@cwayfinder
Copy link

image

Config:

public reportRangeOptions = {
    timePicker: true,
    timePicker24Hour: true,
    timePickerIncrement: 1,
    locale: { format: 'YYYY-MM-DD hh:mm' },
    alwaysShowCalendars: false,
    autoApply: true,
    ranges: {
      'Last Month': [moment().subtract(1, 'month'), moment()],
      'Last 3 Months': [moment().subtract(4, 'month'), moment()],
      'Last 6 Months': [moment().subtract(6, 'month'), moment()],
      'Last 12 Months': [moment().subtract(12, 'month'), moment()],
    }
  };
@evansmwendwa
Copy link
Owner

If you want to use 24hr format I believe you have to use a capital H

locale: { format: 'YYYY-MM-DD HH:mm' },

Same has to be when formatting in your template

@cwayfinder
Copy link
Author

Thanks. My bad.

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

No branches or pull requests

2 participants