Library Updates

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Library Updates

Bil Corry
(1) [lp_date_stringToDate]

A new version of [lp_date_stringToDate] was posted.  It now will recognize date strings that have the time included, such as:

        lp_date_stringToDate:'10/20/2006 12:55:00';

It will return the date in the local server time, even if you pass it a date in UTC/GMT:

        lp_date_stringToDate:'10/20/2006 12:55:00 GMT';

http://tagSwap.net/lp_date_stringToDate



(2) [lp_date_getLocalTimeZone]

A new tag in the library, it is similar to the built-in tag [date_getLocalTimeZone] except you can specify the date at which to evaluate it (it'll take DST into account).  It returns the timezone offset of the server.  So while my server is at UTC offset -0800 during the winter, it's at -0700 during the summer.

http://tagSwap.net/lp_date_getLocalTimeZone




- Bil


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
To switch to the DIGEST mode, E-mail to <[hidden email]>
To switch to the INDEX mode, E-mail to <[hidden email]>
Send administrative queries to  <[hidden email]>