Dear all, we have the problem that the timestamp for storing in the database is the local timestamp where the database server is hosted. We need also the local time of the user request, sided all around the word. To calculate the local time of the user there is a https-api-call via Google Maps and the answer will deliver the time zone with the off_set und the daylight saving time offset as diffenrce to UTC. For example: Today it is 2016-06-13 09:45 CEST = 07:45 UTC; the API delivers for Sydney: 36000 Seconds offset and 0 Secondes dst-offset and for Berlin 3600 Seconds offset and 3600 Seconds dst-offset; I can now calculate Berlin Time - 1 Hour Offset - 1 Hour DST-Offset = UTC + 10 Hours = Sidney Local Time = 17:45 Is is possible to do this with IVY or is thera an other way to get the local time of the staff's office? Thanks in advance. Best regards Dieter asked 13.06.2016 at 13:52 Dieter Staudt |
In the meantime I found some java coding:
But HTTP-Error 407 will happen - I don't understand this, because the following parameters are in the ...\AxonIvyEngineA51\jre\lib\net.propierties-file: http.proxyHost=xxxxxx.yyyyyy-zzzzzz.loc http.proxyPort=8080 http.nonProxyHosts=localhost|127.|[::1] http.nonProxyHosts=ivy3|ivy3.thiel-logistik.loc|localhost|127.|[::1] Who can help me? Thank you answered 27.06.2016 at 11:56 Dieter Staudt Reguel Werme... ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 13.06.2016 at 13:52
Seen: 3,094 times
Last updated: 27.06.2016 at 13:47
How do you now the staff's location? You may can use user properties to store the users time zone difference.
To call the API use JAX-RS. The library is integrated with newer Axon.ivy Versions (6.1). With older versions simply add the necessary libraries to your project. With Axon.ivy Version 6.2 they will be support for REST clients as the one above.