hpc-social / jobs

The HPC social jobs board!
https://hpc.social/jobs
MIT License
1 stars 6 forks source link

fixing jobs rendering with expire date #17

Closed vsoch closed 1 year ago

vsoch commented 1 year ago

problem: not all jobs are showing up solution: the bug is inconsitent rendering of the expires date, which depending on how it is provided can be rendered correctly as a timestamp, or if jekyll cannot, it falls back to a date format that cannot pass the comparison. In practice this results in a lot of missing jobs, and introduces potential for many errors. A better solution is to rely on what we already have, parsing the dates and expires in the python automation, and then allowing for 60 days of buffer (so jobs are shown that go 60 days back). To allow for this we have updated the "Expires" heading to be "Advertised until"

vsoch commented 1 year ago

Should the %b be %m in line 4, or no?

I don't think so, I think %b prints the month name.