mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
refactor(moment): Replace Moment.js with DayJs (#31310)
This commit is contained in:
committed by
GitHub
parent
b382ef1058
commit
a193d790b2
@@ -18,7 +18,6 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { ReactNode } from 'react';
|
||||
import moment from 'moment';
|
||||
import {
|
||||
formatNumber,
|
||||
formatTime,
|
||||
@@ -35,6 +34,7 @@ import {
|
||||
XYChart,
|
||||
buildChartTheme,
|
||||
} from '@visx/xychart';
|
||||
import { extendedDayjs } from 'src/utils/dates';
|
||||
|
||||
interface Props {
|
||||
ariaLabel: string;
|
||||
@@ -223,7 +223,7 @@ const SparklineCell = ({
|
||||
{idx !== undefined &&
|
||||
formatTime(
|
||||
dateFormat,
|
||||
moment.utc(entries[idx].time).toDate(),
|
||||
extendedDayjs.utc(entries[idx].time).toDate(),
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user