I am working with Netsuite library which was generated from WSDL. As a result, the JARs generated from WSDL only accept Calendar.
Deep inside this is the xsd:
http://books.xmlschemata.org/relaxng/ch19-77049.html
As specified:
The time zone may be specified as Z (UTC) or (+|-)hh:mm.
Now I want to actually set a timezone to PST time, However, I do not understand, how I can pass on time-zone information when my Netsuite WSDL only accepts Calendar.
Calendar calendar = Calendar.getInstance();
calendar.setTimeZone(TimeZone.getTimeZone("America/Los_Angeles"));
This above code did not work, since XML somehow did not do a -07.00
Note: This link Convert Java Date into XML Date Format (and vice versa) did not help. Dates are confusing concept to me.