It's okay for a diabetic to fast a little bit but the diabetic should avoid fasting too much as it could be harmful to the persons health.
You should also avoid fasting as a diabetic during the evening hours as you can increase your risk of raising your blood sugar levels.
My mom is diabetic and sometimes has to fast though for the doctor so it's safe to fast as a diabetic in moderation but don't overdo it.