yiisoft/yii — pull request #962 by johnmendonca (2012-07-12 23:12:13+00:00)
Title: Allow correct handling of negative timestamps in CDateFormatter.format()

CDateFormatter.format() uses a ctype_digit call to check if a string parameter is a timestamp, but this method fails for strings like "-3453453535" because of the negative sign. I've added an additional check for negative numbers that allows dates before 1970 to be properly formatted.