Skip to content

Commit 068b7eb

Browse files
committed
GRAL-1162: fix webhook last_delivery_time format
1 parent 5f515c1 commit 068b7eb

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# System, IDE, misc
2+
.DS_Store
3+
.idea
4+
.vscode

src/Models/Data29.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class Data29 implements JsonSerializable
123123
/**
124124
* The last delivery time of the Webhook
125125
* @maps last_delivery_time
126-
* @factory \Pipedrive\Utils\DateTimeHelper::fromSimpleDate
126+
* @factory \Pipedrive\Utils\DateTimeHelper::fromRfc3339DateTime
127127
* @var \DateTime|null $lastDeliveryTime public property
128128
*/
129129
public $lastDeliveryTime;
@@ -212,7 +212,7 @@ public function jsonSerialize()
212212
$json['additional_data'] = $this->additionalData;
213213
$json['remove_reason'] = $this->removeReason;
214214
$json['last_delivery_time'] = isset($this->lastDeliveryTime) ?
215-
DateTimeHelper::toSimpleDate($this->lastDeliveryTime) : null;
215+
DateTimeHelper::toRfc3339DateTime($this->lastDeliveryTime) : null;
216216
$json['last_http_status'] = $this->lastHttpStatus;
217217
$json['admin_id'] = $this->adminId;
218218

0 commit comments

Comments
 (0)