Fix for datetime on numpy 1.6