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
--