scraly/developers-conferences-agenda

Run daily a CI script to update CfP badges

Closed this issue · 3 comments

By dint of doing this, I'm beginning to identify an efficient method for extracting the open CfPs for the current month, then going through them one by one, to compare with today's date. I'd have to run it daily, using UTC (not the best), but the "youngest" timezone (-11:30). Maybe the best is ideally, to calculate the timezone of the conference and compare it with today's date to see if I should perform the switch in red (but difficult/error-prone)

Note that my algorithm/script will only make this green-to-red switch, for the current month ;)
So if the CfP's shift lately, the user doing the update should switch back to green :)

Currently I'm doing a search with "october-2023&color=g"
So it's a "month-year&color=g" search to get green CfP a.k.a in French (ou)vert 👍

scraly commented

@davidaparicio Have you worked on this issue? ;-)

now we have a useful script: validateCFPColor.js

fixed