public static function timeago($date, $format = NULL)
    {
        Yii::app()->controller->widget('vendor.yiqing-95.YiiTimeAgo.timeago.JTimeAgo', array(
            'selector' => ' .timeago',
            'useLocale' => false,
            'settings' => array(
                'refreshMillis' => 60000,
                'allowFuture' => true,
                  'strings' => array(
                    'prefixAgo' => null,
                    'prefixFromNow' => null,
                    'suffixAgo' => "ago",
                    'suffixFromNow' => "from now",
                    'seconds' => "less than a minute",
                    'minute' => "about a minute",
                    'minutes' => "%d minutes",
                    'hour' => "about an hour",
                    'hours' => "about %d hours",
                    'day' => "a day",
                    'days' => "%d days",
                    'month' => "about a month",
                    'months' => "%d months",
                    'year' => "about a year",
                    'years' => "%d years",
                    'wordSeparator' => " ",
                    'numbers' => array()
                  )
            )
        ));

       return CHtml::tag(
            'span',
            array(
                'class'=>"timeago",
                'style'=>'text-decoration:none; cursor: default', // Post processing class application
                'rel'=>'tooltip',
                'data-original-title'=>Cii::formatDate($date, $format),
                'title'=>CTimestamp::formatDate('c', $date)
            ),
            Cii::formatDate($date, $format)
        );
    }