events countdown deprecation warning in moment.js

6 replies · opened Jun 17, 2024

SswwammpJun 17, 2024

Hi Semicolon,

On the Events Single page, the countdown feature (based on moment.js) now throws a deprecation warning (original issue and suggestion s to resolve this can be found on: https://github.com/moment/moment/issues/1407 )

I use this countdown as per your sample file:


    Starts in: 

Could you please advise me about where and what do I need to change in canvas js file to solve this issue and avoid deprecation warning?
Probably only a simple change is needed to ensure proper date format to be passed to moment().

Thank you
A.

SswwammpSep 17, 2024

Hello there,

As my ticket is still open for 3 months, wondering if you could provide answer / solution for it at all (it affects the Canvas functionality).

I'm hesitating to extend my support as it was valid for years but in the last 3 months I did not get any answer (not even a solution) for my Canvas related problem.

Waiting for your reply
Thanks
A.

SSemicolon WebSTAFFSep 24, 2024

Hello,

Apologies for the Delays in replying. This was caused due to restructuring our Team and management, we really apologize for the Inconveniences caused! We assure you that things are back on track and we are working on Updates as we speak which are going to be released soon.

Meanwhile, for the MomentJS deprecation warning, we have updated the MomentJS Plugin and are not receiving this error/warning. Consider using the updated File attached.

This should definitely work fine. An updated will be released soon to address this. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SswwammpSep 24, 2024

Hi,

Thank you very much for your reply. Would you mind sending me the uncompressed js file as well, as previously you've provided me a solution for another ticket and some extra code needed to be added to the Canvas js file?

Many thanks
A.

SSemicolon WebSTAFFSep 24, 2024

Hello,

Sure. Here is the uncompressed file attached.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SswwammpSep 24, 2024

Brilliant, thank you very much!
A.

SswwammpOct 7, 2024

Hi Semicolon,

Thanks for your reply. I have updated the moment.js as you suggested but deprecation warning is still on.

However, maybe I need to update the code I use (?)
I use it as a countdown as it is shown in your demo in counters.html.

The aim is to count down from 15 minutes - I pass the expiry date/time to front end, so the relevant code is like this:


    This Offer Expires in:
    

Could you please advise what to do to solve the deprecation warning?

Many thanks,
A.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard