The first thing I would do is replace the timer and check the exhaust line.
Possible the gas valve coils could be bad too but this is going to be the second step.
- The part number for the timer is
AP2144876
Here are the break down diagrams for the Frigidaire dryer
Model FDGB23RGS1
Gene.