To bake dessert in a glass pan instead of metal?

How do I adjust the temperature and the time?
I made a persimmon pudding, kind of like dessert bars; it was delicious but got burned around the edges in the glass pan. Do I have to buy a metal one, or can I adjust the time and temperature to make it turn out right?