/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
String timeStamp = "2020-01-31 12:13:14 +03:00";
String format = "yyyy-MM-dd HH:mm:ss ZZZZZ";
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);
System.out.println(ZonedDateTime.parse(timeStamp, formatter));
}
}