Page 1 of 1

use UTC time and not the local time

Posted: 06 Dec 2013 10:05
by Multimania
Hello,

is it possible to get the time in UTC?

with "triggertime" I only get the local time but i need it in UTC

Thanks

Re: use UTC time and not the local time

Posted: 06 Dec 2013 10:21
by Martin
Hi,

There is no format option to tell Automagic to show the time in a particular timezone. It uses the timezone set on the device.
As an ugly workaround you could add/subtract the timezone offset before the date is formatted.
Instead of:
{triggertime,dateformat,HH:mm}
You could write:
{addHours(triggertime,2),dateformat,HH:mm}

Regards,
Martin