File tree Expand file tree Collapse file tree
resources/js/packages/ui/src/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import duration from 'dayjs/plugin/duration';
33import relativeTime from 'dayjs/plugin/relativeTime' ;
44import isToday from 'dayjs/plugin/isToday' ;
55import isYesterday from 'dayjs/plugin/isYesterday' ;
6+ import isSameOrBefore from 'dayjs/plugin/isSameOrBefore' ;
7+ import isSameOrAfter from 'dayjs/plugin/isSameOrAfter' ;
68import utc from 'dayjs/plugin/utc' ;
79import timezone from 'dayjs/plugin/timezone' ;
810import weekOfYear from 'dayjs/plugin/weekOfYear' ;
@@ -68,6 +70,8 @@ function configureParseLocale(numberFormat?: string) {
6870dayjs . extend ( relativeTime ) ;
6971dayjs . extend ( isToday ) ;
7072dayjs . extend ( isYesterday ) ;
73+ dayjs . extend ( isSameOrBefore ) ;
74+ dayjs . extend ( isSameOrAfter ) ;
7175dayjs . extend ( duration ) ;
7276dayjs . extend ( utc ) ;
7377dayjs . extend ( timezone ) ;
You can’t perform that action at this time.
0 commit comments