Simba-Avionic / Simba-Avionic/gs_web_app

Plot timestamp displays in UTC instead of timezone defined in .env

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug invalid question
Dominant language
Python
Stars
4
Forks
3
Avg merge
1d 21h
Merged PRs (30d)
3

Description

It sometimes happens that when plotting some data the timestamp on the x-axis is displayed as UTC timezone.

Timestamp is created inside node_handler.py file
Files probably affected: components/plots/Plot.svelte

Proper flow should be:

  1. (backend) node_handler creates utc timestamp
  2. (frontend) based on the value inside vite.config.js it should convert timestamp to given timezone.

Contributor guide

No contributing guide indexed for this repository

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 timestamp creation in node_handler.py and the plotting flow in components/plots/Plot.svelte. Check how the timezone value is supplied through vite.config.js, then reproduce a plot with a configured timezone. Done means the x-axis displays the timestamp in that configured timezone while the backend continues creating UTC timestamps.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
full-stack
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.