io.ebeaninternal.server.core.timezone.CloneDataTimeZone Maven / Gradle / Ivy
package io.ebeaninternal.server.core.timezone;
import java.util.Calendar;
/**
* Implementation of DataTimeZone that clones the Calendar instance.
*
* Used with Oracle JDBC driver as that wants to mutate the Calender.
*
*/
public class CloneDataTimeZone extends SimpleDataTimeZone {
public CloneDataTimeZone(String zoneId) {
super(zoneId);
}
@Override
public Calendar getTimeZone() {
// return cloned copy for Oracle to muck around with
return (Calendar) zone.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy