03-20-2013 12:55 PM
I'm running a sbRIO 9606 (VxWorks 6.3, LabVIEW 2011 SP1).
I want to set the timezone of the sbRIO, because I need the correct date and time as a string locally on the target.
According to the system configuration API (MAX or web configuration on target) I should be able to set an offset of e.g. UTC+5:30 (indian timezone).
According to this thread it should be possible to set any offset to UTC like +2h 13 minutes, quote:
So, if I wanted to have a timezone that was 2 hours and 13 minutes behind GMT, I could use this:
RTTarget.TimeZone="DAN-2:13"
Well I tried both, but the minutes are NOT taken care of, i.e.
- changing the timezone to india (5:30 offset), the offset is just 5 hours.
- changing the timezone to the example above "DAN-2:13", the offset is 2 hours to UTC.
Checked this by running this VI on the RT-Target:
Is it a bug of a feature?
Jens
04-03-2013 02:53 AM - edited 04-03-2013 02:53 AM
Dear jg69,
From looking at the forum you linked, my impression is that it says the VxWorks operating systems cannot do minute adjustment. I am looking at the solution post where it says: "Unfortunately, your documentation is correct - VxWorks based controllers do not have the ability to set automatic DST adjustment rules. However, PharLap-based controllers (including the cRIO-9002 / cRIO-9004 and cRIO-9081 / cRIO-9082 controllers) can do this."
To verify this I try it out with two different cRIOs which are the same architecture as a sbRIO and I fail also so change the minutes.
So I'm sorry but it’s not possible to do this on a VxWorks based Controller like the most cRIOs and all sbRIOs.
09-24-2013 10:36 AM
I am using cRIO 9014, 9025 and 9023. Time zone is an issue for my application. From the discussion above, my feeling is that I can set time zone on VxWorks but not the DST. Is that true?
Thanks,