5sControl / 5sControl/5s-frontend

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

未关闭 适合新手
#81 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug Front
主要语言
TypeScript
星标
3
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

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)

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
react, typescript
领域
frontend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
70/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。