-
Notifications
You must be signed in to change notification settings - Fork 84
Fix #98 timezone
lost for @JsonFormat
#167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/test/java/com/fasterxml/jackson/datatype/joda/ser/JsonFormatTimeZoneWithPattern98Test.java
Outdated
Show resolved
Hide resolved
static class Wrapper3Z<T> { | ||
@JsonFormat( | ||
shape = JsonFormat.Shape.STRING, | ||
pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS ZZZ", | ||
timezone = "Europe/Budapest" // +01:00 in winter | ||
) | ||
public T value; | ||
Wrapper3Z(T v) { value = v; } | ||
} | ||
|
||
static class Wrapper2Z<T> { | ||
@JsonFormat( | ||
shape = JsonFormat.Shape.STRING, | ||
pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS ZZ", | ||
timezone = "Europe/Budapest" | ||
) | ||
public T value; | ||
Wrapper2Z(T v) { value = v; } | ||
} | ||
|
||
static class Wrapper1Z<T> { | ||
@JsonFormat( | ||
shape = JsonFormat.Shape.STRING, | ||
pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS Z", | ||
timezone = "Europe/Budapest" // +01:00 in winter | ||
) | ||
public T value; | ||
Wrapper1Z(T v) { value = v; } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting difference reference from joda doc
I assume this was meant to target |
My intial thought was 2.20, but 2.19 seems also reasonable 👍🏼 |
Fixes #98