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

How to implement with MomentJS #124

Open
Aiphira opened this issue Dec 14, 2016 · 0 comments
Open

How to implement with MomentJS #124

Aiphira opened this issue Dec 14, 2016 · 0 comments

Comments

@Aiphira
Copy link

Aiphira commented Dec 14, 2016

Hi hi! So, I don't know much about coding, so I am having some problems/questions.

Right now, I am using a different countdown that does what I expect it to and it is timezone aware, that I need and it uses MomentJS to achieve this.

Currently, it goes like this, for exmaple:

var item58Add = moment.tz("2018-08-25 01:00", "Europe/Vilnius");
var currTime = new Date();
$('#countdowni58').countdown(item58Add.toDate())
.on('update.countdown', function(event) {
    $(this).html(event.strftime('%D:%H:%M:%S'));
})
.on('finish.countdown',function(event) {
    $(this).html("<div class='after_finish'>Item has been added!!</div>");
});

But, I loved this countdown because of it's animation/styling. Soo, my question: how do I use MomentJS with TimeCircles?

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

1 participant