Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Carlos Mosqueda 240 posts 431 karma points
    Apr 17, 2019 @ 18:14
    Carlos Mosqueda
    0

    Umbraco 7.12 having issues setting Publish and Unpublish dates. Getting Moment.js errors

    We have a site running Umbraco 7.12.

    When we try to set the Unpublish date and select a date from the calendar, for some the time will not set and in our console we get a moment.utc(....).utcOffset is not a function error in the Angular. This seems to be in the core of Umbraco.
    Any ideas why this would be causing this issue? My content editors can't set the dates. I even tried as an admin and still having issues.

    enter image description here

  • Carlos Mosqueda 240 posts 431 karma points
    Apr 19, 2019 @ 18:17
    Carlos Mosqueda
    0

    ANSWER:

    So we found our issue. We have Diplo Date Range Picker installed in our system. Evidently in the daterangepicker.controller.js file it has a reference to Moment.js, which is an older version of Moment AND core Umbraco uses Moment JS as well. So I switched out the reference in the .load() method in the Angular to point to the Umbraco reference instead.

    This fixed our issue.

Please Sign in or register to post replies

Write your reply to:

Draft