Android parse String to Date – unknown pattern character ‘X’
The Android version of SimpleDateFormat doesn’t support the X pattern so XXX won’t work but instead you can use ZZZZZ which does the same and outputs the timezone in format +02:00 (or -02:00 depending on the local timezone).