Well, I asked something similar eight months ago and no response from
the list:

If I have a DateTime object I can do:

    SET tz = c.current_user.time_zone || 'UTC';
    event_time.clone.set_time_zone( tz ).strftime( format );

But, I'd like to do something like:

    event_time.user_time.strftime( format );

But the VMethod "user_time" would need access to the stash.

I suppose I could do:

    user_time( event_time ).strftime( format );

and have user_time a closure with the timezone.

Better solution?

-- 
Bill Moseley
[EMAIL PROTECTED]


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to