For some reason the last data shown on ppRecent API endpoint (on master branch) was from May 4th instead of 3rd as expected, leading to errors:
Pretty sure it's related to timezone (between 5 pm (4 pm during daylight savings) to 11:59 pm pst, the 7th day might be off by a day).
Not that it matters for the production version of webscraper running on AWS ECS, as it's running on a cron job at the same time of day, but this could help a lot for debug / local dev.
Copied function over from the timezone checking function we use for automated-jobs/SEC/readSEC.js etc.
Issue
For some reason the last data shown on ppRecent API endpoint (on master branch) was from May 4th instead of 3rd as expected, leading to errors:
Pretty sure it's related to timezone (between 5 pm (4 pm during daylight savings) to 11:59 pm pst, the 7th day might be off by a day).
Not that it matters for the production version of webscraper running on AWS ECS, as it's running on a cron job at the same time of day, but this could help a lot for debug / local dev.
Copied function over from the timezone checking function we use for automated-jobs/SEC/readSEC.js etc.
Quick demo for testing: https://playcode.io/1866567