VitaliiBlagodir / cordova-plugin-datepicker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOS mode duration doesn't work , first time

docampog30 opened this issue · comments

if you initialize the plugin and pass a date object into the {date: dateobject} in mode 'Duration' it always show '00:01' the first time that the datePicker is showed in the app, it only happend in IOS

this.datePicker
      .show({
        date: selectedDate.toDate(), //eg Wed Apr 10 2019 00:45:00 GMT-0500 (-05)
        mode: ‘duration’,
        is24Hour: true,
        androidTheme: this.datePicker.ANDROID_THEMES.THEME_HOLO_LIGHT,
      })

With other modes, it works correctly