package o; import java.util.TimeZone; import java.util.regex.Matcher; import java.util.regex.Pattern; /* loaded from: classes6.dex */ public final class gjX { private static final Pattern a = Pattern.compile("^(?:(?i)GMT)?([+-])?(\\d\\d?)?(:?(\\d\\d?))?$"); private static final TimeZone e = new gjY(false, 0, 0); public static TimeZone d(String str) { if ("Z".equals(str) || "UTC".equals(str)) { return e; } Matcher matcher = a.matcher(str); if (!matcher.matches()) { return null; } String group = matcher.group(2); boolean z = false; int parseInt = group != null ? Integer.parseInt(group) : 0; String group2 = matcher.group(4); int parseInt2 = group2 != null ? Integer.parseInt(group2) : 0; if (parseInt == 0 && parseInt2 == 0) { return e; } String group3 = matcher.group(1); if (group3 != null && group3.charAt(0) == '-') { z = true; } return new gjY(z, parseInt, parseInt2); } public static TimeZone a() { return e; } }