java - @DateTimeFormat issue different time between server and client -
i have problem spring annotation @datetimeformat. issue not take correct time zone string. in code have this:
@requestheader(hdr_start_date) @datetimeformat(iso = datetimeformat.iso.date_time) @apiparam(required = true, name = hdr_start_date, value = start_date_format) final date sdate, @requestheader(value = hdr_end_date, required = false) @datetimeformat(pattern = standard_date_format) @apiparam(name = hdr_end_date, value = end_date_format) final date edate here trying iso , pattern test both ways, none of them works.
for example in query send string date: "2015-03-03t00:00:00+0000", in server log see parse mon mar 02 21:00:00 art 2015. see take 3hs off. server default locale california, , client argentina, why there 3hs of difference.
Comments
Post a Comment