/** For date only values and floating convert to local UTC. For UTC just return * the value. For non-floating convert. * * @param dt * @param tzs * @return string UTC value * @throws Throwable */ public static String getUTC(final DateDatetimePropertyType dt, final TzGetter tzs) throws Throwable { DtTzid dtz = getDtTzid(dt); if ((dtz.dt.length() == 18) && (dtz.dt.charAt(17) == 'Z')) { return dtz.dt; } TimeZone tz = null; if (dtz.tzid != null) { tz = tzs.getTz(dtz.tzid); } DateTime dtim = new DateTime(dtz.dt, tz); dtim.setUtc(true); return dtim.toString(); }