diff --git a/README.md b/README.md index bcccec7..8404294 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ import { NativeScriptDateTimePickerModule } from "nativescript-datetimepicker/an ], ... ``` - Then you will be able to decrare the fields in the html of your component: + Then you will be able to declare the fields in the html of your component: ```html diff --git a/demo-angular/e2e/tests.e2e.ts b/demo-angular/e2e/tests.e2e.ts index f1c7480..7acbc59 100644 --- a/demo-angular/e2e/tests.e2e.ts +++ b/demo-angular/e2e/tests.e2e.ts @@ -167,6 +167,10 @@ describe("DateTimePicker", () => { await acceptBtn.click(); let index = driver.isAndroid ? " " : "." let day = date.substring(0, date.indexOf(index)); + let dayNum = parseInt(day); + if(!driver.isAndroid && dayNum < 10){ + day = "0" + day; + } let month = date.substring(date.indexOf(" ") + 1, date.indexOf(",")); month = month.substring(0, 3); let monthString = deMonths[month];