Hi i have a strange problem. I am fetching some xml data from the web which is working as expected. When i call the method which fetches the data in on of my fragments everything is fine but if i call exactly the same method for the same url in another fragment it throws this weird parsing exception where i am trying to convert the incoming date string into a long timestamp in milliseconds. If the error occurred once in the fragment where it isn't working, it also stops working at the fragment where it previously worked. it throws this exception:
java.text.ParseException: Unparseable date: "Sun, 30 Aug 2020 00:32:42 +0000"
and the pattern i am using for simple date format is
"EEE, dd MMM yyyy HH:mm:ss Z"
can anybody tell me why this is happening because the pattern i'm using seems to work so why do i get this exception?