A person mistakenly believed that dawn was at 4:00 AM and remained in a state of janabah until 3:30 AM, when they performed ghusl. After finishing the ghusl, they realized that dawn was actually at 3:00 AM. What is the ruling on their fast in this case?