Using SQL server for logging to custom tables, how does everyone handle timezones?
I would like to use the datetimeoffset type, but ignition didn’t recognise it last time I tried to use it, even after updating the jdbc driver. Then I tried logging to datetime in UTC time zone by converting logged datetimes in python first. But then I don’t know how to convert it back again when reading it back at the client, as it can’t be done in the query as this is executed on the sql server which may have a different time zone… I don’t want to be post-query processing the results in python
For context, I’m logging process batch runs and capturing the stats from each run. But we live in an area with DST and so this ruins logs when it changes over.