Dates are now stored in UTC (#1491)

This commit is contained in:
Régis Freyd
2018-07-22 11:11:06 -04:00
committed by GitHub
parent 8d15e45b2d
commit 341ee04197
20 changed files with 40 additions and 63 deletions
+4 -2
View File
@@ -158,7 +158,9 @@ class ContactsController extends Controller
$contact->load(['notes' => function ($query) {
$query->orderBy('updated_at', 'desc');
}]);
$contact->last_consulted_at = Carbon::now(auth()->user()->timezone);
$contact->last_consulted_at = now();
$contact->save();
$relationships = $contact->relationships;
// get love relationship type
@@ -516,7 +518,7 @@ class ContactsController extends Controller
throw new Exception(trans('people.stay_in_touch_invalid'));
}
$contact->setStayInTouchTriggerDate($frequency, auth()->user()->timezone);
$contact->setStayInTouchTriggerDate($frequency);
return $frequency;
}