Fix (?) serialization of zoneinfo

This commit is contained in:
Kumi 2022-08-12 07:40:10 +00:00
parent 9a8d5eb859
commit 5f82682484
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -6,7 +6,7 @@ def userinfo(claims, user):
claims['nickname'] = user.profile.nickname
claims['preferred_username'] = user.profile.preferred_username
claims['website'] = user.profile.website
claims['zoneinfo'] = user.profile.zoneinfo
claims['zoneinfo'] = str(user.profile.zoneinfo)
claims['phone_number'] = user.profile.phone_number
claims['phone_number_verified'] = user.profile.phone_number_verified
return claims