fixed ios7 warning for nsdate category function