typebot.io icon indicating copy to clipboard operation
typebot.io copied to clipboard

Cross browser date issue

Open wejamtech opened this issue 1 year ago • 3 comments

Hey there,

Chrome and Safari both handle dates from the date input block differently and I can't find a method that will capture the intended selection correctly.

If you try and parse a date in Safari, for example using new Date(), it gets days and months mixed up.

The only solution I can think of at the moment is to detect which browser the user is using, and format the dates accordingly.

Is there a better solution?

Thanks, David

wejamtech avatar May 30 '23 10:05 wejamtech