I see the time zone offset is off by an hour in ignition. What could be causing it?
Testing with system.date.getTimezoneRawOffset() function.
I'm in CST/CDT time zone.
Due to this, my CSV imports with timestamps data is displayed with 1 hour offset.
Is it due to daylight saving? how do we address this issue in ignition?
Returns the amount of time in milliseconds to add to UTC to get standard time in this time zone. Because this value is not affected by daylight saving time, it is called raw offset.
Your offset seems right to me. What did you expect ?
edit:
Wait, I think I got it (I'm not super familiar with CST/CDT).
I'm guessing you were expecting a 5 hours offset because the raw offset should ignore DST ?
edit again:
I mixed up CST and CDT (REALLY not familiar).
CDT is offset by 1 for DST, so CST is the one 6 hours behind UTC, which corresponds to the 6 hours offset you get
Don't use python libs for this kind of things, use java's.
Time to guess:
What's happening here is that the time in your csv is using CDT, so 5 hours behind UTC.
BUT, your ignition is probably set up to use CST. So you get that 1 hour offset.