Skip to content

Add timezone option for current day checks - #928

Open
victorjudysen wants to merge 1 commit into
DenverCoder1:mainfrom
victorjudysen:feature/timezone-parameter
Open

Add timezone option for current day checks#928
victorjudysen wants to merge 1 commit into
DenverCoder1:mainfrom
victorjudysen:feature/timezone-parameter

Conversation

@victorjudysen

Copy link
Copy Markdown
Contributor

Closes #884
Closes #900

Summary

  • Add a timezone request option for deciding the current day boundary
  • Include timezone in cache keys and stale-cache checks
  • Add the timezone option to the README and demo site controls
  • Add a deterministic test for timezone-aware contribution date filtering

Verification

  • php -l src/stats.php && php -l src/generator.php && php -l src/cache.php && php -l src/demo/index.php && php -l tests/StatsTest.php
  • node --check src/demo/js/script.js
  • composer lint
  • TOKEN=dummy vendor/bin/phpunit --testdox tests/StatsTest.php --filter "FutureCommits|ContributionDatesWithTimezone|Weekly|Exclude"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant