Przeglądaj źródła

switch to mysql format dates

pull/34/head
Aaron Parecki 5 lat temu
zatwierdzone przez GitHub
rodzic
commit
8538b9f207
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      compass/app/Http/Controllers/Share.php

+ 1
- 1
compass/app/Http/Controllers/Share.php Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz