Use only geographic time zones (#1033)

This commit is contained in:
Luke Vella 2024-02-24 09:12:05 +08:00 committed by GitHub
parent 39a22acaa7
commit 27dda65ca5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 1416 additions and 618 deletions

View file

@ -265,14 +265,12 @@ const getAuthOptions = (...args: GetServerSessionParams) =>
}
token = { ...token, ...session };
}
if (trigger === "signIn" && user) {
token.locale = user.locale;
token.timeFormat = user.timeFormat;
token.timeZone = user.timeZone;
token.weekStart = user.weekStart;
}
return token;
},
async session({ session, token }) {