Repository navigation
Closed
Labels
api / realtimeFixes and upgrades for the Appwrite Realtime API.product / databasesFixes and upgrades for the Appwrite Database.product / functionsFixes and upgrades for the Appwrite Functions.product / localeFixes and upgrades for the Appwrite Locale.product / sitesFixes and upgrades for Appwrite Sites.product / storageFixes and upgrades for the Appwrite Storage.
Description
Tracks PR #14295.
Plan
Goal: Make every response datetime come out as the documented ISO 8601 format with timezone, including values built in memory such as a synchronous function execution, so API responses, webhooks, realtime and function events all match.
What changes (PR #14295):
src/Appwrite/Utopia/Response.php:output()normalises everyModel::TYPE_DATETIMErule (including array rules) from the database format toY-m-d\TH:i:s.vP; already-formatted, empty and non-string values are left alone.- Removes now-redundant inline
DateTime::formatTz()calls inapp/controllers/api/account.php,Account/MFA/Challenges/Create.php,Users/Sessions/Create.phpandUsers/Tokens/Create.php. - Extends existing e2e tests for Account, Users, Functions (
testSyncCreateExecution) and ProjectWebhooks.
Remaining steps:
- Follow-up noted in the PR, not in scope: the functions worker builds the
executions.*.updateevent payload withModel::filter()instead ofResponse::output(), so its datetimes are not normalised. - Follow-up noted in the PR, not in scope:
Messaging/Messages/Delete.php:77comparesDateTime::now()with aformatTzvalue.
Done when:
- PR fix: format datetime fields in the response model #14295 is reviewed, CI is green and it is merged
- Sync and async execution create responses and their webhook payloads show ISO 8601
$createdAt/$updatedAt - The two follow-ups are filed or consciously dropped
Metadata
Metadata
Assignees
Labels
api / realtimeFixes and upgrades for the Appwrite Realtime API.product / databasesFixes and upgrades for the Appwrite Database.product / functionsFixes and upgrades for the Appwrite Functions.product / localeFixes and upgrades for the Appwrite Locale.product / sitesFixes and upgrades for Appwrite Sites.product / storageFixes and upgrades for the Appwrite Storage.
Activity