Automatically count days since last scandal
requested to merge muellermartin/dayssincelastfacebookscandal.com:automatic-days-counter into production
The lastScandalDate
needed to be adjusted manually although all the data is available in the JSON file scandals.json
to calculate the duration. This PR removes the old JS file with manual data and calculates the duration of the days since the last scandal.
Note: The currently used date format DD/MM/YYYY
needs to be parsed manually as it is incompatible with Date.parse()
that expects the (lesser logical) format MM/DD/YYYY
.