nebular
nebular copied to clipboard
An error occurred in nb-date-timepicker when I opened it using the template
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>
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