I have a system than where the Ignition Server is setup in Eastern Time and the Database MSSQL is setup in Eastern Time. I have a project that will run where clients will be in more than one time zone.
Due to how many projects are on the Existing Ignition server and the number of systems using the database, changing the system to run in UTC is off the table, plus our DB admins have stated they won't change the servers to UTC.
What is the best way to to work in UTC when the server and the database is in Eastern?
Can I just work with the Millisecond Time and store everything as a bigInt in that database, or should I do some conversion before writing to the database so I can store it as a date in SQL.
FWIW I have a database that uses the datetimeoffset column type and to have Named Queries work, I must cast it to a datetime column type. Otherwise, I get the same error.
MS SQL Server Version 15.0.4470, Ignition 8.1.42 for context
So without the datetimeoffset field was is the best way in Ignition and MSSQL(which I can't change) to work in UTC time when the servers are both Eastern?
Is abandoning the project an option?
I'm only half joking.. Any "fix" you apply will have to be applied everywhere to all queries when dealing with datetimes. And they will be more like "breaks". Gross and not fun