Skip to content

Commit

Permalink
fix: use system timezone in gr.DateTime with include_time=False (#9825)
Browse files Browse the repository at this point in the history
* fix: use system timezone in gr.DateTime with include_time=False

* add changeset

---------

Co-authored-by: Abubakar Abid <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>
  • Loading branch information
3 people authored Oct 24, 2024
1 parent b1b81c9 commit f15808e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/thick-hounds-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/datetime": patch
"gradio": patch
---

fix:fix: use system timezone in gr.DateTime with include_time=False
2 changes: 1 addition & 1 deletion js/datetime/Index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
bind:this={datetime}
bind:value={datevalue}
on:input={() => {
const date = new Date(datevalue);
const date = new Date(datevalue + "T00:00:00");
entered_value = format_date(date);
submit_values();
}}
Expand Down

0 comments on commit f15808e

Please sign in to comment.