Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support timezones #11434

Merged
merged 4 commits into from
May 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup
  • Loading branch information
NickM-27 committed May 19, 2024
commit c4f380c4f33cdcb18c27f8ecc5d7b6eb7e8be1ae
7 changes: 0 additions & 7 deletions web/src/components/player/PreviewPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ export default function PreviewPlayer({
const timeRangeOffset =
(getUTCOffset(new Date(timeRange.before * 1000)) % 60) * 60;

console.log(`the offset is ${timeRangeOffset}`);
cameraPreviews.forEach((preview) =>
console.log(
`check ${new Date(Math.round(preview.start) * 1000)} >= ${new Date((timeRange.after + timeRangeOffset) * 1000)}`,
),
);

return cameraPreviews.find(
(preview) =>
preview.camera == camera &&
Expand Down