Skip to content

Commit d6cd8bc

Browse files
Update shiny/ui/_input_date.py
Co-authored-by: Carson Sievert <[email protected]>
1 parent e397dfa commit d6cd8bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shiny/ui/_input_date.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,5 +314,5 @@ def _as_date_attr(x: Optional[date | str]) -> Optional[str]:
314314
if len(x) == 0:
315315
return x
316316
x = date.fromisoformat(x)
317-
# Using strftime here to ensure we just just a date, regardless of if H:M:S are included
317+
# Ensure we return a date (not datetime) string
318318
return x.strftime("%Y-%m-%d")

0 commit comments

Comments
 (0)