def get_local_datetime(self):
# convert global to local date (first add global timezone info, then convert to local)
local_datetime = self.model.curr_global_date
local_datetime = local_datetime.astimezone(timezone(country_timezones(self.country)[0]))
return local_datetime
评论列表
文章目录