Skip to content

Add locale AM/PM to timePicker#2383

Closed
trungkien45 wants to merge 1 commit intodangrossman:masterfrom
trungkien45:master
Closed

Add locale AM/PM to timePicker#2383
trungkien45 wants to merge 1 commit intodangrossman:masterfrom
trungkien45:master

Conversation

@trungkien45
Copy link
Copy Markdown

Add locale AM/PM to timePicker

@Wernfried
Copy link
Copy Markdown

You may use my fork https://github.com/Wernfried/daterangepicker where AM/PM is done automatically based on current locale.

Example:

    import { DateTime, Settings } from 'luxon';
    import { daterangepicker } from 'daterangepicker';
    
    Settings.defaultLocale = 'ee';
    daterangepicker('#picker', {
      timePicker: true,
      endDate: DateTime.now().plus({hours: 12})
    });
grafik

@trungkien45
Copy link
Copy Markdown
Author

Thanks, but I use abp, at abp they use this lib

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

Successfully merging this pull request may close these issues.

2 participants