//$NON-NLS-1$
SimpleDateFormat sdf = new SimpleDateFormat(GEN_PATTERN);
sdf.setTimeZone(TimeZone.getTimeZone("UTC")); //$NON-NLS-1$
String temp = sdf.format(out.content);
// cut off trailing 0s
int nullId;
int currLength;
while (((nullId = temp.lastIndexOf('0", currLength = temp.length() - 1)) != -1)
& (nullId == currLength)) {
temp = temp.substring(0, nullId);
}
// deal with point (cut off if it is last char)
if (temp.charAt(currLength) == '.") {
temp = temp.substring(0, currLength);
}
out.content = (temp + "Z").getBytes(); //$NON-NLS-1$
out.length = ((byte[]) out.content).length;