Skip to content

Commit

Permalink
fix strict typing on datetime UI. Closes #1267
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Sep 28, 2016
1 parent 766bf2e commit 5069232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/uis/datetime/datetime.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ define(['app', 'underscore', 'core/uis/datetime/date', 'moment'], function(app,
return dateFormat;
},
getTimeFormat: function() {
var includeSeconds = this.options.settings.get('include_seconds') === 1;
var includeSeconds = this.options.settings.get('include_seconds') === true;

return includeSeconds ? timeFormat : timeFormat.replace(':ss', '');
},
Expand Down

0 comments on commit 5069232

Please sign in to comment.