Skip to content

Commit

Permalink
refactor: timezone cookie name in unwrapped api name
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-bit committed Dec 11, 2023
1 parent 00aeeaa commit d0578a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/github/unwrapped.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default async function handler(
res: NextApiResponse
) {
let token = req.cookies.ghct;
const timezone = (req.headers.timezone as string) || 'UTC';
const timezone = (req.headers['x-timezone'] as string) || 'UTC';

if (!token) {
return res.status(403).json({
Expand Down

0 comments on commit d0578a9

Please sign in to comment.