Unanswered
Hello Matt,
Setting the timezone is going to depend on if this is going to be a single instance for a single FI.
If this is needed for a single FI, then staticly setting the timezone in the code is the simplest solution. Using the pytz library is typically how that is done, and you could set something in the db config if you wanted to changes this without deploying code.
If this is needed for multiple FIs which all could be in different timezones, the best solution is to make an HQ call. The GetVersion call will return a server time that can be used to get the timezone offset from UTC.
https://docs.q2developer.com/api_references/hq_api/q2_api/GetVersions.html
Let me know if there are any follow up questions!
16 Views
0
Answers
2 years ago
2 years ago
Thank you. I think I have it now.
— Matt Guild 2 years ago