From fc8d5b6abe8af45b1145c2e34e5734bedd764caf Mon Sep 17 00:00:00 2001 From: Meysam Date: Wed, 21 Sep 2016 14:44:01 +0330 Subject: [PATCH] Close #1 --- IntlDateTrait.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/IntlDateTrait.php b/IntlDateTrait.php index 825a18e..066479a 100644 --- a/IntlDateTrait.php +++ b/IntlDateTrait.php @@ -37,10 +37,6 @@ public function asDateTime($pattern = 'yyyy/MM/dd, HH:mm:ss') public function asTimestamp() { - $oldPattern = $this->getFinalPattern(); - $timeValue = strtotime($this->asDateTime()); - $this->setFinalPattern($oldPattern); - return $this->getIntlCalendar()->toDateTime()->format('U'); }