I was able to solve my problem with this if anyone is interested import pytz
{{current_time = datetime.datetime.now(pytz.timezone('America/Vancouver')).replace(tzinfo=None)}} *cheers On Thu, Jan 17, 2013 at 8:25 AM, Andrew Evans <myweb2pyni...@gmail.com>wrote: > Hello web2py group! I am trying to find a way to get the local time say > PST or EST so I can display a video based on that time. > > Any suggestions? I was able to convert it to UTC but this doesn't really > help the situation > > > {{project_date = db(db.schedule).select(orderby=~db.schedule.date_in, > limitby=(0,1))}} > {{for project in project_date:}} > {{start = project.date_in}} > {{end = project.date_out}} > {{dt_utc = datetime.datetime.utcnow()}} > {{current_time = dt_utc - datetime.timedelta(seconds=time.altzone)}} > {{if current_time >= start and current_time <= end:}} > > > *cheers > > and thank you > > --