Skip to content

Commit

Permalink
Merge pull request #934 from oraichain/develop
Browse files Browse the repository at this point in the history
Use local timezone instead hardcode
  • Loading branch information
trungbach committed Sep 20, 2023
2 parents ddf8c73 + 5d05678 commit 9153b67
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/Block/CountdownRemainingBlock/Countdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ function Countdown({ remainingBlock }) {
};

formatTime(remainingTime);

const timezoneOffset = "+0700";
const futureTime = moment()
.add(remainingTime, "seconds")
.utcOffset(timezoneOffset);
const futureTime = new Date(new Date().getTime() + remainingTime * 1000);

return (
<div className={cx("countdown-time")}>
Expand Down

0 comments on commit 9153b67

Please sign in to comment.