use UTC time and not the local time

Post your questions and help other users.

Moderator: Martin

Post Reply
Multimania
Posts: 11
Joined: 19 Nov 2013 12:37

use UTC time and not the local time

Post by Multimania » 06 Dec 2013 10:05

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: use UTC time and not the local time

Post by Martin » 06 Dec 2013 10:21

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

Post Reply