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
🐛 Bug Report: Session - Expire property format returned is inconsistent #8447
When you call Get Session, the expire property is in the format: 2025-07-29T22:11:50.553+00:00. However, when you call Update Session, the format changes to 2025-07-29 22:16:04.780.
For avoidance of doubt, this difference is noticed by calling GET /account/sessions/{sessionId} and PATCH /account/sessions/{sessionId}.
This causes problems that deserialising the json will not always work unless you know to handle it.
👍 Expected behavior
Should always return datetime in the same format (likele the former, for consistency with createdAt and updatedAt)
👎 Actual Behavior
Returned datetime in a different format depending on what operation you are performing
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Windows
🧱 Your Environment
Creating my own .net SDK, so using REST.
👀 Have you spent some time to check if this issue has been raised before?
Hi! I'd like to work on this issue. Could I be assigned?
Root cause: updateSession sets expire (and OAuth providerAccessTokenExpiry) with DateTime::addSeconds() (DB format) and returns that value without DateTime::formatTz(), while GET session returns ISO8601 via the datetime decode filter. I'll match the create-session pattern and add an e2e assertion.
Activity
abishekgiri commentedon Mar 31, 2026
Hi, I’d like to work on this issue. Could I be assigned?
fix: normalize session expire format on update (appwrite#8447)
cipheraxat commentedon Jul 15, 2026
Hi! I'd like to work on this issue. Could I be assigned?
Root cause:
updateSessionsetsexpire(and OAuthproviderAccessTokenExpiry) withDateTime::addSeconds()(DB format) and returns that value withoutDateTime::formatTz(), while GET session returns ISO8601 via the datetime decode filter. I'll match the create-session pattern and add an e2e assertion.fix: return ISO8601 session expire from updateSession