Timezone offset

Stable Version 1.1.0 (OutSystems 11)
Published on 28 January 2020 by 
Created on 20 January 2020

Timezone offset

The time-zone offset is the difference, in minutes, from local time to UTC. Note that this means that the offset is positive if the local timezone is behind UTC and negative if it is ahead. For example, for time zone UTC+10:00 (Australian Eastern Standard Time, Vladivostok Time, Chamorro Standard Time), -600 will be returned. --------------------------------------------- Current Locale UTC-8 UTC UTC+3 Return Value 480 0 -180
Read More

This component allows calculating the timezone offset from the client using the JavaScript method getTimezoneOffset().

Use this value to show DateTimes stored in your applications into the client timezone.

For example, if your server stores date-times in UTC and a user in PST Timezone what to view the value on its own time, you can use the action GetOffsetInMinutes to return the offset and use it with the action AddMinutes() to show the value in PST instead of UTC.

What’s new (1.1.0)

Added function Format_DateTime.

This function will call the builtin function FormatDateTime but it will apply the offset to the received date time to convert from UTC  to the Client-Side timezone.

Reviews (0)
Functional libraries & utilities, Date & time
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Vasco Santos who created this component.
Timezone offset has no dependencies.
Component Consumers
No consumers yet.
Weekly Downloads