mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-07 21:48:24 +00:00
Fix parseDateString
This commit is contained in:
parent
dca0a6d1c3
commit
b9618618ca
@ -147,7 +147,7 @@ export default class DateFormField extends React.Component<IDateFormFieldProps,
|
||||
}
|
||||
|
||||
let momentDate = moment(inputDate, moment.localeData(this.props.locale).longDateFormat('L'));
|
||||
let time = this.props.fieldSchema.DisplayFormat == 1 ? moment(this.props.value.split(" ")[1], moment.localeData(this.props.locale).longDateFormat('LT')) : null;
|
||||
let time = this.props.fieldSchema.DisplayFormat == 1 ? moment(inputDate.split(" ")[1], moment.localeData(this.props.locale).longDateFormat('LT')) : null;
|
||||
if (time) {
|
||||
momentDate.hours(time.hours());
|
||||
momentDate.minutes(time.minutes());
|
||||
|
Loading…
x
Reference in New Issue
Block a user