Commit cc3e6a88 authored by Leigh B Stoller's avatar Leigh B Stoller

Trim whitespace from date before passing to moment. This seems to be a

problem with new moment.js which I updated to fix problems with Chrome.
parent 0c5d9963
......@@ -54,8 +54,7 @@ $(function ()
$('.format-date').each(function() {
var date = $.trim($(this).html());
if (date != "") {
$(this).html(moment($(this).html())
.format("ll"));
$(this).html(moment(date).format("ll"));
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment