public function beforeValidate()
{
$attrs = [ 'time', 'testing', 'call' ];
foreach ( $attrs as $attr ) {
$time = \DateTime::createFromFormat( 'Y-m-d H:i:s', $this->$attr );
if ( !$time ) continue;
$this->$attr = $time->format( 'U' );
}
parent::beforeValidate();
return true;
}