Though it's a common but that raid start at 170 and end at 10 seconds; 30 seconds is pretty extreme. This bug seems to hit Androids worse. I haven't found a rhyme or reason yet. One day a given gym will work fine, the next I get the time thief bug.
Restarting your phone right before helps, but doesn't always eliminate the bug.