We have a delphi application which can also run as a sevice . We have a problem with the shortdate formats while running our application as a service on a Windows 7 machine. Delphi/Win 7 returns a wrong shortdate format. It always returns the “DD-MM-YYYY” format irrespective of the locale we choose . This happens only when we run it as a Service and on win 7! When the application is not run as service we have no issues!
we tried the workaround of changing and saving the formats twice, but in vain
Any help here?
We have a delphi application which can also run as a sevice . We
Share
Your service will get the locale settings of the user account it runs under. My guess is you are running the service as LOCALSYSTEM. If you configure the service to run as your interactive user then you will get the locale settings you want.