Browse Source

switch to mysql format dates

pull/34/head
Aaron Parecki 5 years ago
committed by GitHub
parent
commit
8538b9f207
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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) { private function _databaseFromToken($token) {
$share = DB::table('shares') $share = DB::table('shares')
->where('token', $token) ->where('token', $token)
->where('expires_at', '>', time())
->where('expires_at', '>', date('Y-m-d H:i:s'))
->first(); ->first();
if(!$share) return false; if(!$share) return false;

Loading…
Cancel
Save