This tag was created to overcome a problem where events were stored on one server in GMT, but expected to be presented in the time zone applicable to the local time of the event. ie. taking into account daylight saving / summer time.
The tag accepts a single date/time in Lasso GMT format.
An array of Daylight Saving / Summer Time start and finish dates is required in GMT format. eg. Var:'VIC_DST'=(array: (map:(DST_End)=(04/01/2006 17:00:00 GMT), (DST_Start)=(10/01/2005 16:00:00 GMT)), (map:(DST_End)=(03/26/2005 17:00:00 GMT), (DST_Start)=(10/30/2004 16:00:00 GMT)), (map:(DST_End)=(03/27/2004 17:00:00 GMT), (DST_Start)=(10/25/2003 16:00:00 GMT)))
The relevant offsets from GMT for Standard and Summer Time are set as parameters.
This is my first tag, so all feedback and suggestions will be most welcome.
Parameters
-Date_GMT
date, required
Date in GMT to be ouput in local time
-DST_Array
array, required
Array containing maps of Daylight Saving / Summer start / end dates - Must be in GMT eg. array: (map:(DST_End)=(04/01/2006 17:00:00 GMT), (DST_Start)=(10/01/2005 16:00:00 GMT)), (map:(DST_End)=(03/26/2005 17:00:00 GMT), (DST_Start)=(10/30/2004 16:00:00 GMT)), (map:(DST_End)=(03/27/2004 17:00:00 GMT), (DST_Start)=(10/25/2003 16:00:00 GMT))
-DST_Offset
integer, required
Summer Time GMT offset - Melbourne, Australia is 11
-DST_TZ
string, required
Daylight Saving / Summer Time Zone abbreviation (eg. AEDST)
-Format
string, required
Standard Lasso Date Format (eg. '%d %b %Y %h:%M%p' ... 04 Feb 2006 06:00AM)
-STD_Offset
integer, required
Standard GMT offset (ie. non-Summer Time) Melbourne, Australia is 10
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.