Skip to content

Issue: Timezone Discrepancy in Date Generation for CI/CD Environments #405

Open

Description

@Yashaswini-K-P

File Name

scripts/sync-leaderboard.js

Problem

The getFileName function relies on local system time (new Date()). When the sync script runs inside GitHub Actions runners or cloud containers (which default to UTC), the generated date strings (YYYY-MM-DD) may map to the wrong calendar date depending on the execution time relative to local time zones (e.g., IST). This can lead to misaligned daily snapshots or missing history entries.

Proposed Solution

Explicitly enforce a consistent timezone (such as UTC or the target region's timezone) when generating date strings to ensure reliable behavior across local machines and CI/CD environments.

Implementation Details

  • Timezone Standardization: Adjust getFileName or date helpers to explicitly use UTC methods (getUTCDate(), getUTCFullYear(), etc.) or a timezone formatting library if local alignment is strictly required.

Activity

  1. github-actions commented on Aug 3, 2026

    @github-actions
    Contributor

    Thank you for opening an issue.

    Please review our CONTRIBUTING.md guidelines before getting started.

    A maintainer will review this issue shortly. If you would like to work on the issue yourself, please leave a comment requesting assignment.

    Issue Assignment Policy

    • The issue creator is given the first priority to work on their issue.
    • If the creator declines or does not request assignment, the issue will be assigned to others in the order of requests received.
    • Please do not submit PRs or begin work until you are officially assigned.

    Note: This project is currently maintained by a solo maintainer, so reviews, assignments, and responses may sometimes take a little time. Thanks for your patience.

  2. aaniya22 commented on Aug 6, 2026

    @aaniya22
    Contributor

    pls assign this to me under gssoc

  3. github-actions commented on Aug 23, 2026

    @github-actions
    Contributor

    This issue has been inactive for 14 days and has been marked as stale. To keep this issue open, please leave a comment.

  4. Yashaswini-K-P commented on Aug 29, 2026

    @Yashaswini-K-P
    ContributorAuthor

    working

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

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions