codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
397 stars 68 forks source link

Make current commit parsing more resilient #1421

Closed Oaphi closed 2 months ago

Oaphi commented 2 months ago

This PR makes timestamp parsing more resilient to errors (we got a case where an old, non-strict ISO timestamp was still cached on a local machine after the timestamp change was merged, which brought down the server). Additionally, the PR adds a new application helper (current_commit) for getting the commit info.