How do I create an XMLGregorianCalendar without a timezone? No time offset (0) == UTC which outputs a 'Z' in the output. The meaning of my field is implicit local time, where locality is specified elsewhere on the xml record (such as address).
How do I create an XMLGregorianCalendar with undefined timezone (TimeZone indeterminate)?
Valid XML ISO-8601 Gregorian Calendar formats include:
- CCYY-MM-DDThh:mm:ss – without Zulu time designator or TimeOffset refers to the local time of the relative physical location.
- CCYY-MM-DDThh:mm:ssZ – the DateTime for the relative physical location is expressed in UTC (Zulu) time, for local time a conversion must take place.
- CCYY-MM-DDThh:mm:ss+05:30 the DateTime for the relative physical location is expressed in some time zone which is +5 hours and 30 minutes offset from UTC. For local time we must first convert to UTC, then to local time by offsetting from UTC. There is no guarantee that the provided location is local time for the record location.