mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
* [TIP] Add Threat Intelligence plugin - create Threat Intelligence plugin and integrate with Security Solution plugin - setup jest unit tests, i18n, Cypress tests and Storybook - fetch Indicator of Compromise, and display in data-grid - add flyout components to show IOCs details (table and JSON) - add new threatIntelInt entry to kbn-doc-links package https://github.com/elastic/security-team/issues/4329 https://github.com/elastic/security-team/issues/4138 https://github.com/elastic/security-team/issues/4241 https://github.com/elastic/security-team/issues/4242 https://github.com/elastic/security-team/issues/4244 https://github.com/elastic/security-team/issues/4245 Co-authored-by: lgmys <lgmys@pm.me> Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
17 lines
670 B
TypeScript
17 lines
670 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import moment from 'moment';
|
|
moment.suppressDeprecationWarnings = true;
|
|
import { EMPTY_VALUE } from '../../../common/constants';
|
|
|
|
const FULL_DATE = 'MMMM Do YYYY @ HH:mm:ss';
|
|
|
|
export const fullDateFormatter = (date: string | moment.Moment): string => {
|
|
const momentDate: moment.Moment = typeof date === 'string' ? moment(date) : date;
|
|
return momentDate.isValid() ? momentDate.format(FULL_DATE) : EMPTY_VALUE;
|
|
};
|