]> git.mxchange.org Git - friendica.git/commitdiff
API: "created_at" is timestamp
authorMichael <heluecht@pirati.ca>
Fri, 18 Jun 2021 03:21:38 +0000 (03:21 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 18 Jun 2021 03:21:38 +0000 (03:21 +0000)
src/Object/Api/Mastodon/Token.php

index 8bcb837ec32286fa7292edfaa3f1707f295e73d0..0924e8bb2447a61bd3dd0aae4a43006ed69bcea4 100644 (file)
@@ -37,7 +37,7 @@ class Token extends BaseDataTransferObject
        protected $token_type;
        /** @var string */
        protected $scope;
-       /** @var string (Datetime) */
+       /** @var int (timestamp) */
        protected $created_at;
 
        /**
@@ -53,6 +53,6 @@ class Token extends BaseDataTransferObject
                $this->access_token = $access_token;
                $this->token_type   = $token_type;
                $this->scope        = $scope;
-               $this->created_at   = DateTimeFormat::utc($created_at, DateTimeFormat::JSON);
+               $this->created_at   = strtotime($created_at);
        }
 }