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;