Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to load events in calendar in ios device #571

Open
Prajakta2910 opened this issue Oct 9, 2020 · 1 comment
Open

unable to load events in calendar in ios device #571

Prajakta2910 opened this issue Oct 9, 2020 · 1 comment

Comments

@Prajakta2910
Copy link

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
Copy link
Owner

@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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants