Hello Paulo, sorry for my English. I would write in Portuñol but I think that the rules of the forum in English do not allow it.
I have the same problem that you had using iap and cordova.
I do not finish understanding that you added in "edittime.js"
Could you comment what line you have modified?
Thank you!