Kozea / Kozea/pygal

Handle datetime aware objects in DateTimeLine

Open
#360 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.8k
Forks
419
PR merge metrics
No merged PRs in 30d

Description

Currently, "aware" datetime objects are not handled properly in DateTimeLine graphs. They are converted to "naive" objects, so timezones can not be set correctly.
The only way is to previously convert datetime objects to naive type, avoiding UTC conversion of them when drawing DateTime related graphs.
I'll try to find some time to take a look at the code for a patch
Regards

Contributor guide

Open the contributing guide

Research direction

Start by locating the DateTimeLine implementation and tracing how aware datetime objects are converted before graphs are drawn. Reproduce the issue with timezone-aware datetimes and verify that timezone information is preserved without requiring callers to convert them to naive objects.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.