diff --git a/services/web/app/views/project/list.jade b/services/web/app/views/project/list.jade index 4fffc3fab9..90eaf857db 100644 --- a/services/web/app/views/project/list.jade +++ b/services/web/app/views/project/list.jade @@ -144,6 +144,12 @@ block content mixin tag('{{ project_id }}', '{{ tagName }}', true) - locals.supressDefaultJs = true + script + window.requirejs = { + "paths" : { + "moment": "libs/moment" + } + }; script( data-main=jsPath+'list.js?fingerprint='+fingerprint(jsPath + 'list.js'), baseurl=jsPath, diff --git a/services/web/public/coffee/list.coffee b/services/web/public/coffee/list.coffee index 5f6330d0ab..ea085560d0 100644 --- a/services/web/public/coffee/list.coffee +++ b/services/web/public/coffee/list.coffee @@ -1,16 +1,17 @@ require [ "tags" + "moment" "gui" - "libs/moment" "libs/underscore" "libs/fineuploader" "libs/jquery.storage" -], (tagsManager)-> +], (tagsManager, moment)-> $('.isoDate').each (i, d)-> html = $(d) - unparsedDate = html.text() - formatedDate = moment(unparsedDate).format('LLL') + unparsedDate = html.text().trim() + console.log unparsedDate + formatedDate = moment(unparsedDate).format("Do MMM YYYY, h:mm:ss a") html.text(formatedDate) refreshProjectFilter = ->