Skip to content

Commit

Permalink
Merge pull request #5 from cdubz/ampm
Browse files Browse the repository at this point in the history
Add _isEnabled check for AM/PM in time format.
  • Loading branch information
Eonasdan authored Feb 10, 2018
2 parents bc03358 + d6116ac commit 27dce70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/tempusdominus-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ const DateTimePicker = (($, moment) => {
return this.actualFormat.indexOf('m') !== -1;
case 's':
return this.actualFormat.indexOf('s') !== -1;
case 'a':
case 'A':
return this.actualFormat.toLowerCase().indexOf('a') !== -1;
default:
return false;
}
Expand Down

0 comments on commit 27dce70

Please sign in to comment.