public static function getTimeFormatted($timestamp = 0) { return $timestamp == 0 ? date('Y-m-d H:i:s') : date('Y-m-d H:i:s', $timestamp); }