Skip to content

Commit

Permalink
15.0 itpp calendar meeting url (#4)
Browse files Browse the repository at this point in the history
* 🚑 fix
  • Loading branch information
ilmir-k authored Jan 23, 2024
1 parent c7452bf commit 2b5d918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itpp_calendar_meeting_url/models/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ class Calendar(models.Model):
@api.depends("start")
def _compute_meeting_url(self):
for rec in self:
rec.date_combination = rec.start.astimezone(
date_combination = rec.start.astimezone(
tz=pytz.timezone("Asia/Yekaterinburg")
).strftime(
"%Y%m%d"
) # timezone(self.env.user.tz or 'Asia/Yekaterinburg').
# list of timezones:
# https://gist.github.com/heyalexej/8bf688fd67d7199be4a1682b3eec7568
rec.videocall_location = (
"https://meet.jit.si/discussion_%s" % rec.date_combination
"https://meet.jit.si/discussion_%s" % date_combination
)

0 comments on commit 2b5d918

Please sign in to comment.