mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
cast peer finishedat datetime
This commit is contained in:
@@ -62,9 +62,9 @@ class Test extends Command
|
|||||||
// $r = DB::table('users')->where('id', 1)->update(['modcomment' => DB::raw("concat_ws(',', 'ddddd', modcomment)")]);
|
// $r = DB::table('users')->where('id', 1)->update(['modcomment' => DB::raw("concat_ws(',', 'ddddd', modcomment)")]);
|
||||||
|
|
||||||
$yesterday = Carbon::parse('2021-05-16 13:30');
|
$yesterday = Carbon::parse('2021-05-16 13:30');
|
||||||
$now = Carbon::now();
|
$now = Carbon::parse(0);
|
||||||
$r = $yesterday->diffInSeconds($now);
|
// $r = $yesterday->diffInSeconds($now);
|
||||||
dd($yesterday, $now, $r);
|
dd($now);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class Peer extends NexusModel
|
|||||||
'started' => 'datetime',
|
'started' => 'datetime',
|
||||||
'last_action' => 'datetime',
|
'last_action' => 'datetime',
|
||||||
'prev_action' => 'datetime',
|
'prev_action' => 'datetime',
|
||||||
|
'finishedat' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
public static $connectableText = [
|
public static $connectableText = [
|
||||||
|
|||||||
Reference in New Issue
Block a user