Title: Timestamps from the API seem to get deserialized wrongly · Issue #29 · GetStream/stream-sdk-java · GitHub
Open Graph Title: Timestamps from the API seem to get deserialized wrongly · Issue #29 · GetStream/stream-sdk-java
X Title: Timestamps from the API seem to get deserialized wrongly · Issue #29 · GetStream/stream-sdk-java
Description: I will just lead with some example code (it's kotlin, hope its okay, but the gist should be clear) fun main() { val client = StreamSDKClient() val updateUsersRequest = UpdateUsersRequest().apply { users = mapOf("test" to UserRequest().ap...
Open Graph Description: I will just lead with some example code (it's kotlin, hope its okay, but the gist should be clear) fun main() { val client = StreamSDKClient() val updateUsersRequest = UpdateUsersRequest().apply { ...
X Description: I will just lead with some example code (it's kotlin, hope its okay, but the gist should be clear) fun main() { val client = StreamSDKClient() val updateUsersRequest = UpdateUsersRequest().appl...
Opengraph URL: https://github.com/GetStream/stream-sdk-java/issues/29
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Timestamps from the API seem to get deserialized wrongly","articleBody":"I will just lead with some example code (it's kotlin, hope its okay, but the gist should be clear)\n\n```\nfun main() {\n val client = StreamSDKClient()\n val updateUsersRequest = UpdateUsersRequest().apply {\n users = mapOf(\"test\" to UserRequest().apply {\n id = \"tester\"\n name = \"Tester\"\n })\n }\n client.updateUsers(\n updateUsersRequest\n ).execute().data.users.forEach {\n println(it)\n }\n}\n```\n\nThe output looks like this:\n```\ntester=FullUserResponse(banned=false, createdAt=Thu May 22 23:25:49 CEST 55808194, id=tester, invisible=false, language=, online=false, role=user, shadowBanned=false, totalUnreadCount=0, unreadChannels=0, unreadCount=0, unreadThreads=0, updatedAt=Thu May 22 23:25:49 CEST 55808194, blockedUserIds=[], channelMutes=[], devices=[], mutes=[], teams=[], custom={}, avgResponseTime=null, banExpires=null, deactivatedAt=null, deletedAt=null, image=null, lastActive=null, name=Tester, revokeTokensIssuedBefore=null, latestHiddenChannels=null, privacySettings=null, teamsRole=null)\n```\n\nAs you see, the date is completely off: `createdAt=Thu May 22 23:25:49 CEST 55808194` which is (roughly, maybe due to precission issues) the value if you multiply the current timestamp with 1e6.\n\nThe reasons seems to be that the V2 api responds with timestamps in microseconds resulution (e.g. 1761074344387549000), but the objectMapper the SDK is using to deserialize the response is not configured to understand these timestamps.\n\nIt's not a grave issue for us since we are not using this timestamp. I just noticed and thought I should share.","author":{"url":"https://github.com/Stummi","@type":"Person","name":"Stummi"},"datePublished":"2025-10-21T19:34:44Z","url":"https://github.com/GetStream/stream-sdk-java/issues/29"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:62e7e833-2a70-267a-ee4b-54d918c6f525 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9660:1D86C4:8023841:A275D64:6B037132 |
| html-safe-nonce | bfebe5e5490ef8c7c1a81749d417054537a842cac8aef22715e6b690674351c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjYwOjFEODZDNDo4MDIzODQxOkEyNzVENjQ6NkIwMzcxMzIiLCJ2aXNpdG9yX2lkIjoiNTY0MjIwMTM4NjM5MDM1MjE3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 96a9a875fd762473d2b5d9128e79dce6ceb32f1686075abe913c37f96ddd69f7 |
| hovercard-subject-tag | issue:3537925286 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GetStream/stream-sdk-java/29/issue_layout |
| twitter:image | https://opengraph.githubassets.com/40d806bc1184a3ee9758e1532942dbcf7fa7737a5a3da7186a3e1a4556cf5963/GetStream/stream-sdk-java/issues/29 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40d806bc1184a3ee9758e1532942dbcf7fa7737a5a3da7186a3e1a4556cf5963/GetStream/stream-sdk-java/issues/29 |
| og:image:alt | I will just lead with some example code (it's kotlin, hope its okay, but the gist should be clear) fun main() { val client = StreamSDKClient() val updateUsersRequest = UpdateUsersRequest().apply { ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Stummi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/GetStream/stream-sdk-java git https://github.com/GetStream/stream-sdk-java.git |
| octolytics-dimension-user_id | 8597527 |
| octolytics-dimension-user_login | GetStream |
| octolytics-dimension-repository_id | 823037143 |
| octolytics-dimension-repository_nwo | GetStream/stream-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 823037143 |
| octolytics-dimension-repository_network_root_nwo | GetStream/stream-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width