79232474

Date: 2024-11-28 03:16:03
Score: 0.5
Natty:
Report link

Found a solution, not optimal but is best solution. It works with daylight savings also:

bar_data['time'] = (bar_data['time'].dt.tz_localize('UTC').dt.tz_convert('EST').dt.strftime("%Y-%m-%d %H:%M:%S"))

This converts the date time object into a string without the timezone and this will chart properly through lightweight_charts api.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user1144251