Skip to content

Commit de34db9

Browse files
Merge pull request #12 from NativeScript/kant/readme-typo
Kant/readme typo
2 parents dbf76cf + 3d2c085 commit de34db9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

demo-angular/e2e/tests.e2e.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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];

0 commit comments

Comments
 (0)