From 9aa90ad04dad0856480533688a3d530c5af99d22 Mon Sep 17 00:00:00 2001 From: travoltron Date: Sat, 15 Oct 2016 19:18:09 -0400 Subject: [PATCH] Fix for timestamp --- src/Attachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Attachment.php b/src/Attachment.php index 734a01b..e02ae7f 100644 --- a/src/Attachment.php +++ b/src/Attachment.php @@ -685,7 +685,7 @@ public function toArray() 'color' => $this->getColor(), 'footer' => $this->getFooter(), 'footer_icon' => $this->getFooterIcon(), - 'ts' => $this->getTimestamp() ? $this->getTimestamp()->getTimestamp() : null, + 'ts' => $this->getTimestamp() ? $this->getTimestamp() : null, 'mrkdwn_in' => $this->getMarkdownFields(), 'image_url' => $this->getImageUrl(), 'thumb_url' => $this->getThumbUrl(),