Handle Java SQL timestamps.