From 51682cf6e52937fbff6481c152b9c1a0098dcb87 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Mon, 11 Mar 2019 11:41:04 +0100 Subject: [PATCH] Switch from DateTime to Carbon in Analytics\Reporter [MAILPOET-1815] --- lib/Analytics/Reporter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Analytics/Reporter.php b/lib/Analytics/Reporter.php index 8fb815d42a..33bc9ef1fc 100644 --- a/lib/Analytics/Reporter.php +++ b/lib/Analytics/Reporter.php @@ -1,7 +1,7 @@ settings->get('mta', []); - $installed_at = new DateTime($this->settings->get('installed_at')); + $installed_at = new Carbon($this->settings->get('installed_at')); return [ - 'installedAtIso' => $installed_at->format(DateTime::ISO8601), + 'installedAtIso' => $installed_at->format(Carbon::ISO8601), 'newslettersSent' => $newletters['sent_newsletters_count'], 'welcomeEmails' => $newletters['welcome_newsletters_count'], 'postnotificationEmails' => $newletters['notifications_count'],