Closed julianajlk closed 1 month ago
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.
2U Release Notice: This PR has been deployed to the edX production environment.
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.
2U Release Notice: This PR has been deployed to the edX production environment.
REV-4067.
When
moment-timezone
was upgraded from v0.5.37 -> 0.5.45 by Renovate, it caused an issue in the ProgramDetails page, with console errorM.tz is not a function
in L23DateUtils.stringToMoment(data.trial_end)
.Since then,
moment
has been updated by Renovate as well (previously there was dependency version conflicts withmoment
version fromedx-ui-toolkit
and the version in edx-platform.Removing/setting to false or empty some trial related logic in the Program Subscription Model, some of which is only used when
hasActiveTrial
is true.This file still uses
DateUtils
fromedx-ui-toolkit
andmoment
, but I've added optional chaining to avoid callingtz
if it doesn't exist.If the issue still persists after the upgrade and is in
DateUtils
, this is outside of our scope and the appropriate team will be notified.