File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ import { NativeScriptDateTimePickerModule } from "nativescript-datetimepicker/an
5454 ],
5555 ...
5656 ` ` `
57- Then you will be able to decrare the fields in the html of your component:
57+ Then you will be able to declare the fields in the html of your component:
5858` ` ` html
5959< DatePickerField hint = " select date" > </DatePickerField >
6060< TimePickerField hint = " select time" > </TimePickerField >
Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ describe("DateTimePicker", () => {
167167 await acceptBtn . click ( ) ;
168168 let index = driver . isAndroid ? " " : "."
169169 let day = date . substring ( 0 , date . indexOf ( index ) ) ;
170+ let dayNum = parseInt ( day ) ;
171+ if ( ! driver . isAndroid && dayNum < 10 ) {
172+ day = "0" + day ;
173+ }
170174 let month = date . substring ( date . indexOf ( " " ) + 1 , date . indexOf ( "," ) ) ;
171175 month = month . substring ( 0 , 3 ) ;
172176 let monthString = deMonths [ month ] ;
You can’t perform that action at this time.
0 commit comments