Invalid ZoneOffset when syncing in Persian language #257
-
When setting phone language to "fa" (Which is for Iran language), DAVx5 shows notification with Steps to reproduce:
This is the bug I get:
Here is also the debug report: |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
I can't manage to reproduce. Steps followed:
Please, can you give more details on how to reproduce? Also, please, report from davx5-ose when it's related to DAVx⁵. |
Beta Was this translation helpful? Give feedback.
-
Hi, firstly thanks for your answer and your amazing job on DAVx5. Have you checked the AllDay Switch button? Because if you did, the error won't reproduce. The error is just producible if you set start and end time. However I've figured out this error is not thrown in a few cases (which I couldn't find out why). But here is steps I made to produce the error: After I debugged I've figured out it is happening inside ical4android module which uses ical4j library which returns a So how can I solve this issue inside DAVx5? Should I replace every Persian digit I see in |
Beta Was this translation helpful? Give feedback.
-
You can also see same numbers with different digits in offset which will return to the caller: |
Beta Was this translation helpful? Give feedback.
-
Hi, Is it possible that the iCalendar that should be synced is broken and contains Arabic numbers, for instance because it was generated by a version of DAVx5 that used the old ical4j that generated broken VTIMEZONEs? In this case, only removing the VTIMEZONEs (rewrite the affected events, for instance with another client) or to totally delete/re-create them would help. Otherwise, we'd need steps to reproduce the problem. It would be especially important to know whether the current DAVx⁵ version generates those invalid iCalendars or whether it's just about parsing. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm pretty sure steps I've mentioned will reproduce the problem. But there are some cases in which the problem won't occur:
If you search for class |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot to DAVx5 team, specially @rfc2822 and @ArnyminerZ for their great support. For those who might have the same problem, you can keep up with issue discussed here: ical4j/ical4j#458. |
Beta Was this translation helpful? Give feedback.
Thanks a lot to DAVx5 team, specially @rfc2822 and @ArnyminerZ for their great support.
For those who might have the same problem, you can keep up with issue discussed here: ical4j/ical4j#458.