Skip to content

Commit

Permalink
default to UTC if no timezone is available (#1987)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Oct 6, 2023
1 parent cf0ad73 commit 5e5e44d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/pages/w/[wId]/assistant/[cId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function AssistantConversation({
body: JSON.stringify({
content: input,
context: {
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC",
profilePictureUrl: user.image,
},
mentions,
Expand Down
2 changes: 1 addition & 1 deletion front/pages/w/[wId]/assistant/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function AssistantNew({
message: {
content: input,
context: {
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC",
profilePictureUrl: user.image,
},
mentions,
Expand Down

0 comments on commit 5e5e44d

Please sign in to comment.