From 8538b9f207fd91bc29274ca6de06d2c9bc0bf7aa Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 17 May 2019 09:10:43 -0700 Subject: [PATCH] switch to mysql format dates --- compass/app/Http/Controllers/Share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compass/app/Http/Controllers/Share.php b/compass/app/Http/Controllers/Share.php index a8b613d..db3d2fc 100644 --- a/compass/app/Http/Controllers/Share.php +++ b/compass/app/Http/Controllers/Share.php @@ -12,7 +12,7 @@ class Share extends BaseController private function _databaseFromToken($token) { $share = DB::table('shares') ->where('token', $token) - ->where('expires_at', '>', time()) + ->where('expires_at', '>', date('Y-m-d H:i:s')) ->first(); if(!$share) return false;