// Path: src/main/java/br/com/six2six/fixturefactory/util/DateTimeUtils.java
// public static java.time.ZonedDateTime toZonedDateTime(Calendar value) {
// 	return value.toInstant().atZone(value.getTimeZone().toZoneId());
// }


import static br.com.six2six.fixturefactory.util.DateTimeUtils.toZonedDateTime;
import java.util.Calendar;
import org.apache.commons.lang.ClassUtils;
package br.com.six2six.fixturefactory.transformer;




public class DateTimeTransformer implements Transformer {

	@Override
	public <T> T transform(Object value, Class<T> type)  {
		Object returnValue = null;
		
		if (value == null) {
			return null;
		}
		
		if (ClassUtils.isAssignable(type, java.time.LocalDateTime.class)) {
// Path: src/main/java/br/com/six2six/fixturefactory/util/DateTimeUtils.java
// public static java.time.ZonedDateTime toZonedDateTime(Calendar value) {
// 	return value.toInstant().atZone(value.getTimeZone().toZoneId());
// }


// Path: src/main/java/br/com/six2six/fixturefactory/transformer/DateTimeTransformer.java
import static br.com.six2six.fixturefactory.util.DateTimeUtils.toZonedDateTime;
import java.util.Calendar;
import org.apache.commons.lang.ClassUtils;

package br.com.six2six.fixturefactory.transformer;




public class DateTimeTransformer implements Transformer {

	@Override
	public <T> T transform(Object value, Class<T> type)  {
		Object returnValue = null;
		
		if (value == null) {
			return null;
		}
		
		if (ClassUtils.isAssignable(type, java.time.LocalDateTime.class)) {
			returnValue = toZonedDateTime((Calendar) value).toLocalDateTime();