angular-timer icon indicating copy to clipboard operation
angular-timer copied to clipboard

end-time counting up instead of counting down

Open maerman opened this issue 8 years ago • 1 comments

<timer end-time="endDate">{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds</timer>

$scope.endDate = (new Date(2017, 11, 12, 0, 0, 1)).getTime(); End date is supposed to be December 12,2017 at 1 second after midnight.

Counter works but counts up as if it is using start-time instead of end-time.

maerman avatar Oct 22 '17 03:10 maerman

Problem seems to be with naming, it has to be endTime, else is doesn't work at all! Try this: $scope.endTime = moment("01 Nov 2018 12:00:00").valueOf();

smuaq avatar Oct 31 '17 19:10 smuaq