From 6133498165831485bd053c28237df716ef3c522c Mon Sep 17 00:00:00 2001 From: nemunaire Date: Mon, 1 Feb 2016 17:12:35 +0100 Subject: [PATCH] Use Angular date filter --- frontend/static/js/app.js | 5 ----- frontend/static/views/theme.html | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/static/js/app.js b/frontend/static/js/app.js index a1561558..543fb1f3 100644 --- a/frontend/static/js/app.js +++ b/frontend/static/js/app.js @@ -91,11 +91,6 @@ angular.module("FICApp") } } }) - .filter("date", function() { - return function(input) { - return (new Date(Date.parse(input))).toLocaleTimeString(); - } - }) .controller("DataController", function($scope, $http, $rootScope, $timeout) { var actMenu = function() { if ($scope.my && $scope.themes) { diff --git a/frontend/static/views/theme.html b/frontend/static/views/theme.html index 76c2c4db..ba17e4d2 100644 --- a/frontend/static/views/theme.html +++ b/frontend/static/views/theme.html @@ -44,7 +44,7 @@
Soumettre une solution
@@ -65,7 +65,7 @@
Challenge réussi !
- Vous êtes la {{ my.exercices[current_exercice].solved_number }}e équipe à avoir résolu ce challenge à {{ my.exercices[current_exercice].solved_time | date }}. Vous avez marqué {{ themes[current_theme].exercices[current_exercice].gain }} points ! + Vous êtes la {{ my.exercices[current_exercice].solved_number }}e équipe à avoir résolu ce challenge à {{ my.exercices[current_exercice].solved_time | date:"fullDate" }}. Vous avez marqué {{ themes[current_theme].exercices[current_exercice].gain }} points !