From ccabbc4fdf2085ece150a3ace489d02951329f98 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 5 Sep 2022 01:41:26 +0400 Subject: [PATCH] feat: update datetime descriptions --- app/controllers/api/databases.php | 2 +- src/Appwrite/Utopia/Response/Model/AttributeDatetime.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 3167287b1e..38489c8331 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -1282,7 +1282,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/dateti ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') ->param('required', null, new Boolean(), 'Is attribute required?') - ->param('default', null, new DatetimeValidator(), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true) + ->param('default', null, new DatetimeValidator(), 'Default value for the attribute in ISO 8601 format. Cannot be set when attribute is required.', true) ->param('array', false, new Boolean(), 'Is attribute an array?', true) ->inject('response') ->inject('dbForProject') diff --git a/src/Appwrite/Utopia/Response/Model/AttributeDatetime.php b/src/Appwrite/Utopia/Response/Model/AttributeDatetime.php index 5c1c99337b..16692d215b 100644 --- a/src/Appwrite/Utopia/Response/Model/AttributeDatetime.php +++ b/src/Appwrite/Utopia/Response/Model/AttributeDatetime.php @@ -25,7 +25,7 @@ class AttributeDatetime extends Attribute ]) ->addRule('format', [ 'type' => self::TYPE_DATETIME, - 'description' => 'Datetime format.', + 'description' => 'ISO 8601 format.', 'default' => APP_DATABASE_ATTRIBUTE_DATETIME, 'example' => APP_DATABASE_ATTRIBUTE_DATETIME, 'array' => false,