twinssbc / Ionic2-Calendar

A calendar component based on Ionic framework
https://ionic-calendar-demo.stackblitz.io
MIT License
389 stars 199 forks source link

unable to load events in calendar in ios device #571

Open Prajakta2910 opened 4 years ago

Prajakta2910 commented 4 years ago

hi, I have creted one appointment schedule app using ionic. it is working perfectly fine with android and chrome browser but when I create ios build it is not working. event sare not loade in the calendar. I am getting start and end date 2020-08-05T12:00:00Z format. and while need to convert it to singapore timezone. I am using moment timzone library to convert it. Please help to identifying the issue in ios. using following converion: new Date(momentTimezone('2020-10-10T01:00:00Z').tz('Asia/singapore').format(YYYY-MM-DD'))

Please suggest is it correct way? It is working perfectly on android and browser

twinssbc commented 4 years ago

@Prajakta2910 check this discussion https://stackoverflow.com/questions/3085937/safari-js-cannot-parse-yyyy-mm-dd-date-format

Safari has some limitation on the date format. I think you could try to get the millisecond of the date, then parse to new Date()