Skip to content

Add timezone support for accurate contribution streak calculation #7

@ayushraistudio

Description

@ayushraistudio

Contribution streaks are often calculated using UTC, which can cause
incorrect streak breaks for users in different timezones.

We should allow timezone-aware streak calculation to make stats more accurate.

  • Add a timezone query parameter (e.g. Asia/Kolkata)
  • Use the timezone when calculating daily contribution boundaries
  • Keep UTC as the default if no timezone is provided
  • Do not break existing API behavior

/api?username=USER&theme=neon&timezone=Asia/Kolkata

Note: GitHub GraphQL data remains unchanged; timezone is applied only during streak calculation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions