StrToDateTime does work on Chrome but works on Edge

Hi There,

I discovered that Delphi function StrToDateTime does not work in Chrome but works as expected in Edge. I have made a demo to demonstrate this issue :
70. StrToDatetime.zip (2.7 MB)

As you can see, there is an error message appearing:

when implementing such conversion in Chrome but looks good in Edge.

Any idea to fix this?
Thanks

I tested this here both in Chrome and in Edge but I could not see a problem.
In both browsers (on the same machine) this works without errors.
Are you using these browsers on different machines?
Is it possible there are different locale settings on these 2 machines?

Hi Bruno did you click Convert button? I deployed demo project to github and saw below in Chrome (latest version)

Could you please test it on below link: TMS Web Project

To answer your question, I am using these two browsers on the same windows computer with same locale settings.

I cannot see a problem here in Chrome with this link:

datetimeconvert

Hi Bruno,

Thanks for testing it. I reset my chrome and it works now.

That's very interesting by the way.

1 Like