You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect timestamp format in AndroidNotification.event_time #337
We are not specifying the timezone for the SimpleDateFormat. Therefore the resulting timestamp string is in the local timezone while the backend expects it to be in UTC.
The way nanoseconds are formatted seems to be wrong. For the milliseconds value 1546304523123L this generates the string 2019-01-01T01:02:03.000000123Z. I would expect the nanos to be formatted as 123000000 (i.e. 123 milliseconds in nanos).
Yes currently it formats based on the local timezone. Should change to UTC.
I think RFC3339 does not specify how nanoseconds should be formatted. But in Java class SimpleDateFormat, 'S' means Milliseconds. So I think I should just format it into 'SSS' and append '000000' after the 'SSS'.
Activity
chong-shao commentedon Dec 19, 2019
I think you are correct on both issues:
Will add a fix soon.