Fix date on license expiry messages (#4258)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
11bf05813a
Коммит
0512bd26ee
@@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
import Constants from 'utils/constants.jsx';
|
import Constants from 'utils/constants.jsx';
|
||||||
|
|
||||||
import React from 'react';
|
import LocalizationStore from 'stores/localization_store.jsx';
|
||||||
import {FormattedDate} from 'react-intl';
|
|
||||||
|
|
||||||
export function isLicenseExpiring() {
|
export function isLicenseExpiring() {
|
||||||
if (window.mm_license.IsLicensed !== 'true') {
|
if (window.mm_license.IsLicensed !== 'true') {
|
||||||
@@ -34,12 +33,6 @@ export function isLicensePastGracePeriod() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function displayExpiryDate() {
|
export function displayExpiryDate() {
|
||||||
return (
|
const date = new Date(parseInt(global.window.mm_license.ExpiresAt, 10));
|
||||||
<FormattedDate
|
return date.toLocaleString(LocalizationStore.getLocale(), {year: 'numeric', month: 'long', day: 'numeric'});
|
||||||
value={new Date(parseInt(global.window.mm_license.ExpiresAt, 10))}
|
|
||||||
day='2-digit'
|
|
||||||
month='long'
|
|
||||||
year='numeric'
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user