nebular icon indicating copy to clipboard operation
nebular copied to clipboard

An error occurred in nb-date-timepicker when I opened it using the template

Open janice1015 opened this issue 3 years ago • 0 comments

Current behavior: An error occurred in nb-date-timepicker when I opened it using the template Uncaught TypeError: date.getHours is not a function at NbNativeDateService.getHours (index.js:7554) at NbNativeDateService.isSameHour (index.js:6087) at NbNativeDateService.isSameHourAndMinute (index.js:6084) at NbTimePickerComponent.isSelectedFullTimeValue (index.js:9168) at NbTimePickerComponent_nb_card_0_ng_container_6_nb_list_item_2_Template (index.js:210) at executeTemplate (core.js:9579) at refreshView (core.js:9445) at refreshEmbeddedViews (core.js:10570) at refreshView (core.js:9469) at refreshEmbeddedViews (core.js:10570)

insert short code snippets here

TB01.component.html <input nbInput placeholder="start time" [nbDatepicker]="startdate" [(ngModel)]="sStartDate"> <nb-date-timepicker #startdate singleColumn [step]="1">

ng-template Opens TB01.component.html <ng-template #content2><app-TB01 [Action]="xxx" [UpdateReturnvalue]="xxx"(afterupdate)="xxx($event)"></app-TB01>

npm, node, OS, Browser Angular CLI: 12.1.0 Node: 14.12.0 Package Manager: npm 6.14.8 OS: win32 x64 Angular: 12.1.0 Browser:Edge

janice1015 avatar Jul 06 '22 08:07 janice1015