I've put a patient as subject into a composition like this:
Patient patient = new Patient();
String BIRTHDATE = "19811018083212";
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
final Date date = sdf.parse(BIRTHDATE);
patient.setBirthDate(new DateDt(date));
compositionBuilder.getComposition().setSubject(new ResourceReferenceDt(patient));
Debugging into this composition I find a fastTime of 372238332000 representing the date 19811018083212 in milliseconds (mySubject -> myResource -> mybirthdate -> myCoercedValue). Time zone is properly filled (myTimeZone).
Now I put this composition into a REST-call and debug into it again on server side finding the amount of milliseconds reduced by the amount representing the time, now 372207600000 (means date 19811018000000). Time zone is null now.
I am wondering if this behaviour would cause any problems in the meaning of having the birthdate changed by one day in cases where server and client are located in different time zones. Or am I missing something?