I’m fairly new to Ionic 2, and Ionic in general. At the moment I’m building my second app to get a little bit more into the material. Today I came a cross an issues that I think most of the developers stumble upon.
In the app I’m build right now the user has the opportunity to create time spans which have a starting and end datetime. Of course I’m using the ion-datetime-component but it is kind of strange to me.
The user should be able to select/edit the date time according to his timezone, but since I can only set the ion-datetime value using an ISO-String, which is in zulu time, I have to add the timezone offset, fake it to a zulu string and pass it into the component, after submitting the form i have to manually recalculate the time and pass it to the back end.
In my opinion it is a common practice to have the user select the datetime according to his time zone but still output a ISO-String to pass it to the DB.
Am I missing something or is this just not provided? Why not?
Thank you for any advice…