From 2fbf67218200c1a02ab3ddc0cf27032b84ceab41 Mon Sep 17 00:00:00 2001 From: Tirta Patriot Date: Tue, 25 Jan 2022 23:24:30 +0700 Subject: [PATCH] replace moment with light-date --- package.json | 2 +- src/components/dateTimePicker/index.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4eddd0a823..3c97b9cb08 100644 --- a/package.json +++ b/package.json @@ -46,9 +46,9 @@ "color": "^3.1.0", "commons-validator-js": "^1.0.237", "hoist-non-react-statics": "^3.0.0", + "light-date": "^1.2.0", "lodash": "^4.0.0", "memoize-one": "^5.0.5", - "moment": "^2.24.0", "prop-types": "^15.5.10", "react-freeze": "^1.0.0", "react-native-color": "0.0.10", diff --git a/src/components/dateTimePicker/index.tsx b/src/components/dateTimePicker/index.tsx index c8b3f0c593..9a9685862e 100644 --- a/src/components/dateTimePicker/index.tsx +++ b/src/components/dateTimePicker/index.tsx @@ -1,5 +1,5 @@ import _ from 'lodash'; -import moment from 'moment'; +import {format as formatDate} from 'light-date'; import React, {Component} from 'react'; import {StyleProp, StyleSheet, ViewStyle} from 'react-native'; import {DateTimePickerPackage as RNDateTimePicker} from '../../optionalDependencies'; @@ -194,13 +194,13 @@ class DateTimePicker extends Component