title: Invalid ID for offset-based ZoneId - Java 8
body: <p>I am using the LocalDate and LocalDateTime API. In my machine (Windows) it works normally, however when I start the service on a Linux server the error occurs: Invalid ID for offset-based ZoneId: GMT-3: 00</p>
  
  <p>Already configure the server Locale to pt_BR and timezone to America / Sao_Paulo and the error persists.</p>
  
  <p>I tried configuring Tomcat by inserting configuration parameters into the setenv.sh file and also did not succeed.</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code> @RestController
      public class HomeController {
  
  
          @RequestMapping("/zone-id-default")
          public ZoneId zoneIdDefault() {
              return ZoneId.systemDefault();
          }
  
      }
  </code></pre>
  
  <p><strong>StackTrace</strong></p>
  
  <pre><code>    java.time.DateTimeException: Invalid ID for offset-based ZoneId: GMT-3:00
          at java.time.ZoneId.ofWithPrefix(ZoneId.java:437)
          at java.time.ZoneId.of(ZoneId.java:407)
          at java.time.ZoneId.of(ZoneId.java:359)
          at java.time.ZoneId.of(ZoneId.java:315)
          at java.util.TimeZone.toZoneId(TimeZone.java:556)
          at java.time.ZoneId.systemDefault(ZoneId.java:274)
          at br.coop.unimedgoiania.controller.HomeController.zoneIdDefault(HomeController.java:27)
  Caused by: java.time.DateTimeException: Invalid ID for ZoneOffset, non numeric characters found: -3:00
      at java.time.ZoneOffset.parseNumber(ZoneOffset.java:269)
      at java.time.ZoneOffset.of(ZoneOffset.java:221)
      at java.time.ZoneId.ofWithPrefix(ZoneId.java:431)
  </code></pre>
  
  <p><strong>JVM Arguments passed by catalina.sh</strong></p>
  
  <pre><code>CATALINA_OPTS="-Duser.timezone=America/Sao_Paulo"
  </code></pre>