kernc / kernc/backtesting.py

Timezone not respected in charts

Open
#1,065 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

Charts would plot in same timezone as the data.

Actual Behavior

Charts are plotted in UTC, even though the source data was tz-aware of the form: 2023-06-15 08:30:00-05:00

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing where chart timestamps are converted or rendered, using the timezone-aware example in the issue as the reproduction case. Check how the chart handles the -05:00 offset and verify that plotted times remain aligned with the source data rather than being forced to UTC.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.