public String toString() {
        // ensure minimum precision of 3 decimal places by using our own 3-decimal-place formatter when we have no nanos.
        final DateTimeFormatter formatter = (instant.getNano() == 0 ? ISO_INSTANT_MILLIS : DateTimeFormatter.ISO_INSTANT);
        return formatter.format(instant);
    }
@Test
    public void testParsingDateNoOffset() throws Exception {
        final Timestamp t = new Timestamp("2014-09-23", OFFSET_CLOCK, LOCALE);
        assertEquals("2014-09-23T08:00:00.000Z", t.toString());
    }