Commit 0512bd26 authored by Joram Wilander's avatar Joram Wilander Committed by Corey Hulen
Browse files

Fix date on license expiry messages (#4258)

parent 11bf0581
......@@ -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'});
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment