react-component / react-component/picker

格式化为小时时,面板的时间未正确显示

Open
#546 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
304
Forks
345
Avg merge
2d 7h
Merged PRs (30d)
7

Description

复现步骤:https://codesandbox.io/s/gracious-shockley-q7bxvx?file=/src/App.js

在上面demo,选择日期后,小时面板里的时间显示的是具体的时间,期望是 22:00:00。分和秒为0
image

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

Open the linked CodeSandbox and start with src/App.js, then reproduce the date selection and inspect the hour-panel display. The fix is complete when the selected hour is shown with minutes and seconds set to zero, such as 22:00:00, while preserving the demonstrated behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.