Commit 58aea2eb authored by dmorley's avatar dmorley

use carbon

parent c32929e1
Pipeline #581 passed with stage
in 1 minute and 40 seconds
......@@ -261,8 +261,7 @@ foreach ($pods as $pod) {
die('Status Red Error in SQL query: ' . $e->getMessage());
}
$langdiff = (new DateTime())->diff(new DateTime($updbstatus['date_created']));
$langdays = $langdiff->days;
$langdays = Carbon::createFromFormat('Y-m-d H:i:s.u', $updbstatus['date_created'])->diffInDays();
// Default to the already saved language.
$detectedlanguage = $language;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment