Skip to content

Commit

Permalink
fix: timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
jebibot committed May 9, 2024
1 parent c641ff2 commit 7f5716d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/browser/components/cards/StreamCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function StreamCard(props: StreamCardProps) {
if (liveDetail?.openDate) {
// @ts-expect-error update liveInfo
stream.openDate = liveDetail.openDate;
return new Date(liveDetail.openDate);
return new Date(`${liveDetail.openDate}+0900`);
}
}, [liveDetail?.openDate]);

Expand Down
4 changes: 2 additions & 2 deletions src/browser/views/popup/FollowedUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ function ChildComponent(props: ChildComponentProps) {
const isLive = !!channel.streamer?.openLive;

if (matchesFields && [isLive, null].includes(followedUserState.status)) {
const followDate = channel.channel.personalData?.following?.followDate;
items.push({
...channel.channel,
followedAt: new Date(channel.channel.personalData?.following?.followDate ?? 0),

followedAt: new Date(followDate ? `${followDate}+0900` : 0),
isRerun: false,
isLive,
});
Expand Down

0 comments on commit 7f5716d

Please sign in to comment.