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
Fix by assuming the value is in seconds while converting to the NaiveDateTime data type.
Or even better, remove completely the NaiveDateTime data type and leave the original i64 type.
Do we need a NaiveDateTime to do any date handling?
The text was updated successfully, but these errors were encountered:
🙂 Expected behavior
Input.timestamp
in the GraphQL server should be number of seconds since epoch.🫠 Actual behavior
The value is being divided by 1000 by assuming the value that comes from the blockchain was in milliseconds, when in fact it's in seconds.
🧪 Minimal test case
Query the server at
https://0x9f12d4365806fc000d6555acb85c5371b464e506.sepolia.rollups.staging.cartesi.io/graphql
🌎 Environment
Rollups 1.0.0
✔️ Possible solutions
Fix by assuming the value is in seconds while converting to the NaiveDateTime data type.
Or even better, remove completely the
NaiveDateTime
data type and leave the originali64
type.Do we need a
NaiveDateTime
to do any date handling?The text was updated successfully, but these errors were encountered: