Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

end-time counting up instead of counting down #325

Open
maerman opened this issue Oct 22, 2017 · 1 comment
Open

end-time counting up instead of counting down #325

maerman opened this issue Oct 22, 2017 · 1 comment

Comments

@maerman
Copy link

maerman commented Oct 22, 2017

<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.

@smuaq
Copy link

smuaq commented Oct 31, 2017

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants