On Tue, Dec 15, 2009 at 5:28 AM, Kevin McGrath <kmcgr...@baknet.com> wrote:
> > Doing the work in parse_datetime does not work for me. In fact I almost > never call parse_datetime directly and when I do it's to get the datetime > passed in from a form into UTC. I need/want the time_zone conversion to > also happen within the format_datetime function when necessary. > Does it have to happen within the formatting? I use something like this: [% user_time( user.expire_date ).strftime( user.time_pattern || '%x %X' ) %] Where user_time is a closure that simply does $dt->clone->set_time_zone( $current_user->time_zone ); A VMethod would be cleaner, but I was lazy. -- Bill Moseley mose...@hank.org