• Resolved AMBA

    (@amba_13)


    hi, i’m french and the date/time format of the start meeting in details is not in my local format
    i see you use moment.js but how can set local(‘fr’) in your script please ?
    best regards
    Arnaud

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter AMBA

    (@amba_13)

    i found it !
    its a bug you call a local() function but its locale() with e
    in public/js/script.js line 42

    Thread Starter AMBA

    (@amba_13)

    my mistake for working local i have to replace
    ZVC_PLUGIN_VENDOR_ASSETS_URL . '/moment/moment.min.js', array( 'jquery' ), '2.24.0', true );
    by
    ZVC_PLUGIN_VENDOR_ASSETS_URL . '/moment/moment-with-locales.min.js', array( 'jquery' ), '2.24.0', true );
    in /include/class-zvc-init.php line 70

    and call the function locale(‘fr’) in scripts.min.js

    purhaps you can add a setting for this in the next update of your script ???

    Plugin Author Deepen

    (@j_3rk)

    Hi @amba_13

    Ah that makes sense. I’ll be sure to add locales as well.

    https://momentjs.com/docs/#/manipulating/local/

    Actually, moment.local() function converts to local time but i think it works either way even if i remove this. Just added this to ensure no issues.

    What happens if you set below:

    $(‘.sidebar-start-time’).html(moment.parseZone(convertedTimezonewithoutFormat).local().locale(‘fr’).format(‘LLLL’));

    Can you send a PR https://github.com/techies23/video-conference-zoom here, on change you did ? I’ll review it.

    • This reply was modified 5 years ago by Deepen.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘set local with moment start meeting’ is closed to new replies.