diff options
Diffstat (limited to 'webapp/utils/license_utils.jsx')
-rw-r--r-- | webapp/utils/license_utils.jsx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/webapp/utils/license_utils.jsx b/webapp/utils/license_utils.jsx index 0ee8b75de..c4be1f25e 100644 --- a/webapp/utils/license_utils.jsx +++ b/webapp/utils/license_utils.jsx @@ -3,8 +3,7 @@ import Constants from 'utils/constants.jsx'; -import React from 'react'; -import {FormattedDate} from 'react-intl'; +import LocalizationStore from 'stores/localization_store.jsx'; export function isLicenseExpiring() { if (window.mm_license.IsLicensed !== 'true') { @@ -34,12 +33,6 @@ export function isLicensePastGracePeriod() { } export function displayExpiryDate() { - return ( - <FormattedDate - value={new Date(parseInt(global.window.mm_license.ExpiresAt, 10))} - day='2-digit' - month='long' - year='numeric' - /> - ); + const date = new Date(parseInt(global.window.mm_license.ExpiresAt, 10)); + return date.toLocaleString(LocalizationStore.getLocale(), {year: 'numeric', month: 'long', day: 'numeric'}); } |