mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[APPS-2136] migrate search-datetime-range to date-fns (#9004)
* strongly typed forms * migrate to date-fns * [ci:force] mark moment pipes for deprecation * [ci:force] try migrate the metadata smoke e2e * [ci:force] remove dead code * cleanup dead code and switch e2e to date-fns * [ci:force] migrate tests * revert metadata * [ci:force] migrate e2e * [ci:force] delete date util
This commit is contained in:
@@ -18,6 +18,9 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import moment, { Moment } from 'moment';
|
||||
|
||||
/**
|
||||
* @deprecated this pipe is deprecated and should no longer be used
|
||||
*/
|
||||
@Pipe({ name: 'adfMomentDate' })
|
||||
export class MomentDatePipe implements PipeTransform {
|
||||
transform(value: moment.MomentInput, dateFormat: string): Moment {
|
||||
|
@@ -18,6 +18,9 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import moment, { Moment } from 'moment';
|
||||
|
||||
/**
|
||||
* @deprecated this pipe is deprecated and should no longer be used
|
||||
*/
|
||||
@Pipe({ name: 'adfMomentDateTime' })
|
||||
export class MomentDateTimePipe implements PipeTransform {
|
||||
transform(value: moment.MomentInput, dateFormat: string): Moment {
|
||||
|
Reference in New Issue
Block a user