mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
endof('day') addition when no time is present as we are using new datepicker calendar now.
This commit is contained in:
+2
-2
@@ -115,7 +115,7 @@ export class CardViewDateItemComponent extends BaseCardView<CardViewDateItemMode
|
||||
|
||||
onDateChanged(newDateValue) {
|
||||
if (newDateValue) {
|
||||
const momentDate = moment(newDateValue.value, this.dateFormat, true);
|
||||
const momentDate = moment(newDateValue.value, this.dateFormat, true).endOf('day');
|
||||
if (momentDate.isValid()) {
|
||||
this.valueDate = momentDate;
|
||||
this.property.value = momentDate.toDate();
|
||||
@@ -138,7 +138,7 @@ export class CardViewDateItemComponent extends BaseCardView<CardViewDateItemMode
|
||||
|
||||
addDateToList(newDateValue) {
|
||||
if (newDateValue) {
|
||||
const momentDate = moment(newDateValue.value, this.dateFormat, true);
|
||||
const momentDate = moment(newDateValue.value, this.dateFormat, true).endOf('day');
|
||||
if (momentDate.isValid()) {
|
||||
this.property.value.push(momentDate.toDate());
|
||||
this.update();
|
||||
|
||||
Reference in New Issue
Block a user