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
54
54
],
55
55
...
56
56
` ` `
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:
58
58
` ` ` html
59
59
< DatePickerField hint = " select date" > </DatePickerField >
60
60
< TimePickerField hint = " select time" > </TimePickerField >
Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ describe("DateTimePicker", () => {
167
167
await acceptBtn . click ( ) ;
168
168
let index = driver . isAndroid ? " " : "."
169
169
let day = date . substring ( 0 , date . indexOf ( index ) ) ;
170
+ let dayNum = parseInt ( day ) ;
171
+ if ( ! driver . isAndroid && dayNum < 10 ) {
172
+ day = "0" + day ;
173
+ }
170
174
let month = date . substring ( date . indexOf ( " " ) + 1 , date . indexOf ( "," ) ) ;
171
175
month = month . substring ( 0 , 3 ) ;
172
176
let monthString = deMonths [ month ] ;
You can’t perform that action at this time.
0 commit comments