Browse Source

switch to mysql format dates

master
Aaron Parecki 6 months ago
parent
commit
8538b9f207
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      compass/app/Http/Controllers/Share.php

+ 1
- 1
compass/app/Http/Controllers/Share.php View File

@@ -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;

Loading…
Cancel
Save