5sControl / 5sControl/5s-frontend

[3h]fix bug in Orders View(product operation time)

Open Beginner friendly
#81 0 comments 0 reactions 0 assignees View on GitHub
bug Front
Dominant language
TypeScript
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

summary: Orders View, при выборе заказа, время начала операции по продукту отображается не верно(+3 часа относительно времени из базы данных).
1. Открыть приложение;
2. Отрыть вкладку Orders View;
3. Выбрать заказа со статусом started(пример 55676).
Result: Время начало операции 4:56 PM(+3 часа ко времени начало согласно БД).
Expecte result: Время начала операции согласно таблице 2023-02-28-13:56:16.

Result:
![Image](https://user-images.githubusercontent.com/113969187/225937407-64483162-52f1-45dd-8d0d-e282cdb2feee.png)

Expecte result:
![Image](https://user-images.githubusercontent.com/113969187/225937408-220014d7-0f74-4972-acae-f8631ae8dcf8.png)

Contributor guide

Open the contributing guide

Research direction

Look at the Orders View component where the operation start time is displayed. The issue is a timezone offset of +3 hours. Check the date formatting logic, likely in a utility file, and ensure it correctly handles UTC/local conversion. Verify by comparing the displayed time with the database timestamp 2023-02-28-13:56:16.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.