Fix ArgumentError for commits with invalid timezone offsets
What does this MR do and why?
Contributes to #569387 (closed)
Problem
When Git repositories contain commits with malformed or extreme timezone values that exceed Ruby's valid range (±18 hours), GitLab would crash with "ArgumentError: utc_offset out of range" when calling Time.strptime.
Solution
Add error handling to gracefully fallback to UTC when timezone parsing fails, ensuring GitLab remains functional while preserving the original timestamp data.
References
ArgumentError: utc_offset out of range in Git C... (#569387 - closed)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #569387 (closed)