You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the gr.DateTime as an input field, and select a date, the field fills with the previous date (off-by-one). It also reports to the callback function the off-by-one date. Video shows example of bug.
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
importgradioasgrdeftmp(date):
return"The date is {0}".format(date)
demo=gr.Interface(
fn=tmp,
inputs=[gr.DateTime(label="Date", include_time=False, type="datetime")],
outputs=[gr.Textbox(label="Output")],
)
demo.launch()
Screenshot
test.mp4
Logs
$ python3 test.py
Running on local URL: http://127.0.0.1:7860
To create a public link, set`share=True`in`launch()`.^CKeyboard interruption in main thread... closing server.
System Info
$ gradio environment
Gradio Environment Information:
------------------------------
Operating System: Linux
gradio version: 4.44.1
gradio_client version: 1.3.0
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 23.2.1
anyio: 4.6.0
fastapi: 0.115.0
ffmpy: 0.4.0
gradio-client==1.3.0 is not installed.
httpx: 0.27.2
huggingface-hub: 0.25.1
importlib-resources: 6.4.5
jinja2: 3.1.4
markupsafe: 2.1.5
matplotlib: 3.9.2
numpy: 2.1.1
orjson: 3.10.7
packaging: 24.1
pandas: 2.2.3
pillow: 10.4.0
pydantic: 2.9.2
pydub: 0.25.1
python-multipart: 0.0.12
pyyaml: 5.4.1
ruff: 0.6.8
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.5
typing-extensions: 4.12.2
urllib3: 2.2.3
uvicorn: 0.31.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.
gradio_client dependencies in your environment:
fsspec: 2024.9.0
httpx: 0.27.2
huggingface-hub: 0.25.1
packaging: 24.1
typing-extensions: 4.12.2
websockets: 12.0
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered:
Describe the bug
When I use the
gr.DateTime
as an input field, and select a date, the field fills with the previous date (off-by-one). It also reports to the callback function the off-by-one date. Video shows example of bug.Have you searched existing issues? 🔎
Reproduction
Screenshot
test.mp4
Logs
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: