Skip to content

Commit

Permalink
fix(dates): long date format
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Jan 9, 2019
1 parent b4db0db commit a59faed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helpers/viewdata/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ viewController.getData = function(request, cb) {
if (!err && setting && setting.value)
viewdata.longDateFormat = setting.value;
else
viewdata.longDateFormat = 'MM/DD/YYYY h:mma';
viewdata.longDateFormat = 'MMM DD, YYYY';

return done();
});
Expand Down
2 changes: 1 addition & 1 deletion src/public/js/modules/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ function($, _, moment, UIkit, CountUp, Waves, Selectize, Snackbar, ROLES, Cookie
if (window.trudeskSettingsService)
return window.trudeskSettingsService.getSettings().longDateFormat.value;
else
return 'MM/DD/YYYY h:mma';
return 'MMM DD, YYYY';
};

helpers.formatDate = function(date, format) {
Expand Down

0 comments on commit a59faed

Please sign in to comment.