Skip to content

Commit 86c6402

Browse files
committed
Fix #60
1 parent 4e6c266 commit 86c6402

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

release-notes/CREDITS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ Brad Kennedy (bkenned4@github)
2727
Charlie La Mothe (clamothe@github)
2828
* Contributed #51: Calling `JodaDateSerializerBase.isEmpty()` results in a `StackOverflowError`.
2929
(2.5.1)
30+
31+
Thorsten Platz (ThorstenPlatz@github)
32+
* Reported #60: Configured date/time format not considered when serializing Joda Instant
33+
(2.5.4)

release-notes/VERSION

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Project: jackson-datatype-joda
44
=== Releases ===
55
------------------------------------------------------------------------
66

7+
2.5.4 (not yet released)
8+
9+
#60: Configured date/time format not considered when serializing Joda Instant
10+
(reported by Thorsten P)
11+
712
2.5.3 (24-Apr-2015)
813
2.5.2 (29-Mar-2015)
914

@@ -16,8 +21,6 @@ No changes since 2.5.1
1621

1722
2.5.0 (01-Jan-2015)
1823

19-
No changes since 2.4
20-
2124
2.4.6 (23-Apr-2015)
2225
2.4.5 (14-Jan-2015)
2326
2.4.4 (24-Nov-2014)

src/main/java/com/fasterxml/jackson/datatype/joda/ser/InstantSerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public final class InstantSerializer
1919
public InstantSerializer() { this(FormatConfig.DEFAULT_TIMEONLY_FORMAT); }
2020
public InstantSerializer(JacksonJodaDateFormat format) {
2121
super(Instant.class, format, false,
22-
SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS);
22+
SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
2323
}
2424

2525
@Override

0 commit comments

Comments
 (0)