I'm sending a zoned date with Joda from Android to a backend service with ZonedDateTime but in backend the date is always "UTC".
The problem: I need to make an schedule agenda app that works in any country.
I send from my Android App a date with timezone. Ok, I'm doing this with Joda and Jackson, ex:
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssZ")
private DateTime startDate;
Ok, it's sending
2018-04-16T16:41:38-0300
Until here I think it's everying ok.
In my backend service (Spring with Jackson) I'm using the ZonedDateTime:
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssZ")
private ZonedDateTime startDate;
And the result is always UTC :(
2018-04-16T19:41:38Z[UTC]