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

ios #189

Open
alirezafarahaniii opened this issue Oct 16, 2019 · 5 comments
Open

ios #189

alirezafarahaniii opened this issue Oct 16, 2019 · 5 comments

Comments

@alirezafarahaniii
Copy link

hi
it's working on all platforms except iPhone!!
what should I do?

@behrang
Copy link
Member

behrang commented Oct 20, 2019

What is it that does not work?

Provide more data and an example.

@alirezafarahaniii
Copy link
Author

What is it that does not work?

Provide more data and an example.

for example, displayed time in ios(i mean in my application not phone clock.phone clock is right) is 11:15 but in other platforms is 14:45.it seems +3:30 doesn't work on ios!

@alitaheri
Copy link
Member

@alirezafarahaniii are you sure the string you're passing to moment adheres to ISO 8601?

That means, make sure the offset is provided, if not the append Z. otherwise some platforms will parse in UTC while others will parse in local timezone:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#Timestamp_string

@alirezafarahaniii
Copy link
Author

alirezafarahaniii commented Nov 13, 2019

@alirezafarahaniii are you sure the string you're passing to moment adheres to ISO 8601?

That means, make sure the offset is provided, if not the append Z. otherwise, some platforms will parse in UTC while others will parse in local timezone:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#Timestamp_string

this is date That I pass to moment jalaali =>2019-11-13T07:05:00.000+0000

Error:invalid Jalaali year-100721

@alirezafarahaniii
Copy link
Author

alirezafarahaniii commented Nov 13, 2019

What is it that does not work?

Provide more data and an example.

this is date That I pass to moment jalaali =>2019-11-13T07:05:00.000+0000

Error:invalid Jalaali year-100721

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

3 participants