I have a property that looks at a bunch of client settings and outputs a date/time in the format that the IEM client can understand it (Mon, 03 Mar 2014 15:00:00 -0600). The Day through the Time are all retreived by client settings, but the -0600 time zone is added by the inspector “as local time”.
However, I now need this time/date of Mon, 03 Mar 2014 15:00:00 -0600 to be as UTC Universal Time/GMT +0000 rather than central time. I’ve tried adding “as universal string”, “as universal time”, and “as universal time zone”, but nothing seems to work.
Does anyone know how to switch a time from local time to GMT?
but there is no way to take the existing date and time logic and instead of it being calculated as local time, calculate it as UTC?
this is what I’m working with and it is currently “As local time”, but I want it to be as “universal time”, but without having to concat too much additional items to it.
(((((first ((if (it = “0”) then (“Sunday”) else if (it = “1”) then (“Monday”) else if (it = “2”) then (“Tuesday”) else if (it = “3”) then (“Wednesday”) else if (it = “4”) then (“Thursday”) else if (it = “5”) then (“Friday”) else if (it = “6”) then (“Saturday”) else nothing) of (value of setting “day_0” of client) as day_of_week) of (current month_and_year - 1*month)) + ((value of setting “week_number_day_0” of client as integer - 1)*week) + ((value of setting “days_after_day_0” of client as integer)*day)) as string) & " " & (value of setting “time” of client as integer *minute)as string) as local time)