code: private void initDatetimeFormat() {
          String formatWithTimeZone = null;
          if (IS_ANDROID) {
              if (ANDROID_SDK_VERSION >= 18) {
                  // The time zone format "ZZZZZ" is available since Android 4.3 (SDK version 18)
                  formatWithTimeZone = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ";
              }
          } else if (JAVA_VERSION >= 1.7) {
              // The time zone format "XXX" is available since Java 1.7
              formatWithTimeZone = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX";
          }
          if (formatWithTimeZone != null) {
              this.datetimeFormat = new SimpleDateFormat(formatWithTimeZone);
              // NOTE: Use the system's default time zone (mainly for datetime formatting).
          } else {
              // Use a common format that works across all systems.
              this.datetimeFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
              // Always use the UTC time zone as we are using a constant trailing "Z" here.
              this.datetimeFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
          }
      }
docs: Initialize datetime format according to the current environment, e.g. Java 1.7 and Android.