diff --git a/angular_app/events-list.html b/angular_app/events-list.html
index f8c9f19..fade54b 100644
--- a/angular_app/events-list.html
+++ b/angular_app/events-list.html
@@ -2,12 +2,19 @@
- Search:
- Sort by:
-
+
diff --git a/angular_app/js/app.js b/angular_app/js/app.js
index 17cbc81..ffb8f39 100644
--- a/angular_app/js/app.js
+++ b/angular_app/js/app.js
@@ -15,6 +15,12 @@
*/
+String.prototype.getTime = function() {
+ var ms = Date.parse(this);
+ return new Date(ms);
+};
+
+
/* Register our fantastic app. */
var eventManApp = angular.module('eventManApp', [
'ngRoute',
diff --git a/angular_app/js/services.js b/angular_app/js/services.js
index 84e995f..e9b4c7b 100644
--- a/angular_app/js/services.js
+++ b/angular_app/js/services.js
@@ -14,6 +14,18 @@ eventManServices.factory('Event', ['$resource',
return angular.fromJson(data).events;
}
},
+ get: {method: 'GET',
+ transformResponse: function(data, headers) {
+ data = angular.fromJson(data);
+ if (data && data['begin-datetime']) {
+ data['begin-datetime'] = data['begin-datetime'].getTime();
+ }
+ if (data && data['end-datetime']) {
+ data['end-datetime'] = data['end-datetime'].getTime();
+ }
+ return data;
+ }
+ },
update: {method: 'PUT'}
});
}]
diff --git a/angular_app/person-detail.html b/angular_app/person-detail.html
index c3f422f..fb8e30b 100644
--- a/angular_app/person-detail.html
+++ b/angular_app/person-detail.html
@@ -1,19 +1,19 @@
-