Add timezone aliases

This commit is contained in:
Nabeel Shahzad
2018-02-06 10:33:39 -06:00
parent 8d76e16220
commit c6b1a475e9
2 changed files with 17 additions and 2 deletions

View File

@@ -92,6 +92,15 @@ class User extends Authenticatable
return $this->getPilotIdAttribute();
}
/**
* Return the timezone
* @return mixed
*/
public function getTzAttribute()
{
return $this->timezone;
}
/**
* @param mixed $size Size of the gravatar, in pixels
* @return string