Skip to content

Commit f153c47

Browse files
committed
refactor the convert_to_utc_date function
1 parent c80097c commit f153c47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/playwright/shiny/inputs/input_slider/test_input_slider_app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
def convert_to_utc_date(date_str: str) -> str:
1313
date_obj = datetime.datetime.strptime(date_str, "%m/%d/%y")
14-
epoch_time_seconds = date_obj.timestamp()
15-
epoch_time_milliseconds = float(epoch_time_seconds * 1000)
14+
epoch_time_milliseconds = date_obj.timestamp() * 1000
1615
return str(epoch_time_milliseconds)
1716

1817

0 commit comments

Comments
 (0)