Skip to content
This repository was archived by the owner on Jan 3, 2020. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/CalendarContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ class CalendarContainer extends Component<Container.CalendarContainerProps, Cale
mx.data.create({
entity: this.props.eventEntity,
callback: (newEvent) => {
newEvent.set(this.props.startAttribute, dateMath.startOf(slotInfo.start, "day"));
newEvent.set(this.props.endAttribute, dateMath.endOf(slotInfo.end, "day"));
newEvent.set(this.props.startAttribute, slotInfo.start);
newEvent.set(this.props.endAttribute, slotInfo.end);
if (this.props.mxObject && this.props.newEventContextPath && this.props.newEventContextPath.split("/")[1] === this.props.mxObject.getEntity()) {
newEvent.set(this.props.newEventContextPath.split("/")[0], this.props.mxObject.getGuid());
} else {
Expand Down