nitweb: add catalog sidebar on package views
[nit.git] / share / nitweb / javascripts / entities.js
index ed2836b..71bf600 100644 (file)
                                        controller: function(mentity, doc) {
                                                this.mentity = mentity;
                                                this.doc = doc;
+
+                                               this.date = function(date) {
+                                                       return new Date(date);
+                                               }
                                        },
                                        controllerAs: 'vm',
                                })