diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-10-28 11:22:02 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-06 19:21:02 +0300 |
commit | 55f291e8ceae6d3d432039f72f6935c62fb2a872 (patch) | |
tree | 0251e33d29241731ad16ae8a9681fa0863782840 /app/assets/javascripts/lib/utils/datetime_utility.js | |
parent | 31bd36845ba1c18404f029f85b6a0f841c1c390c (diff) |
replace application.js sprockets output with webpack-generated equivalent
Diffstat (limited to 'app/assets/javascripts/lib/utils/datetime_utility.js')
-rw-r--r-- | app/assets/javascripts/lib/utils/datetime_utility.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/datetime_utility.js b/app/assets/javascripts/lib/utils/datetime_utility.js index e8e502694d6..30e4e490543 100644 --- a/app/assets/javascripts/lib/utils/datetime_utility.js +++ b/app/assets/javascripts/lib/utils/datetime_utility.js @@ -17,7 +17,7 @@ w.gl.utils.days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; w.gl.utils.formatDate = function(datetime) { - return dateFormat(datetime, 'mmm d, yyyy h:MMtt Z'); + return (new Date(datetime)).format('mmm d, yyyy h:MMtt Z'); }; w.gl.utils.getDayName = function(date) { |