rencarnacion Posted September 22, 2021 Share Posted September 22, 2021 Hi, is there a way to make a multi timezone application in unigui, if some one have a demo or documentation about it send it by this way Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 22, 2021 Share Posted September 22, 2021 28 minutes ago, rencarnacion said: a multi timezone application in unigui Hello, What do you mean!? Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted September 22, 2021 Author Share Posted September 22, 2021 How can I control the Time zone in my application?, example the time zone in my country is GMT-4, but I clients from in USA and Europe with different time zone Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 22, 2021 Share Posted September 22, 2021 3 hours ago, rencarnacion said: How can I control the Time zone in my application?, example the time zone in my country is GMT-4, but I clients from in USA and Europe with different time zone Hello, why do you need this? What data will you change according to the time zone? Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted September 23, 2021 Author Share Posted September 23, 2021 If I have a customer in China the make the invoice for example the time will not be Chinese will be the time of our servers in USA Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 23, 2021 Share Posted September 23, 2021 1 minute ago, rencarnacion said: If I have a customer in China the make the invoice for example the time will not be Chinese will be the time of our servers in USA I think you should let the user specify the timezone in the program settings, and then take into account the time zone difference. Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted September 23, 2021 Author Share Posted September 23, 2021 Ok , How to I specify the time zone for every Customer ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 23, 2021 Share Posted September 23, 2021 5 minutes ago, rencarnacion said: How to I specify the time zone for every Customer ? https://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted September 23, 2021 Author Share Posted September 23, 2021 Thanks for the information , I wil try with these JavaScript Quote Link to comment Share on other sites More sharing options...
Wilton Ergon Posted September 23, 2021 Share Posted September 23, 2021 you must have a parameter in your application that indicates the time zone difference in relation to the server time, based on this difference, in every data inclusion for date fields you will have to add the current time (server) with this parameter, which can be negative or positive, and very likely that you will have to review all your forms, and where it is necessary to update dates.. another way would be through triggers in your database, which would make this adjustment automatically on inclusion or change. you could create a generic function in delphi that fetches the date time and adds it to that parameter, and use this function in all fields that need to write date, or date + time if the situation exists that your china customer traveled to the US, in this scenario, would your system have to adopt local time, or china time? if it's local time, then in that case you should use the javascript function that will capture the browser's local time... 1 Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted September 28, 2021 Author Share Posted September 28, 2021 Thanks, That what I'll do !! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.