Skip to content

Commit

Permalink
日本時間修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yamanoku committed Oct 30, 2024
1 parent 615de3b commit 3efdf4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/islands/counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function Counter(props: InitialTime) {
};
}, []);

console.log(new Date().toISOString());
console.log(new Date().toLocaleString("ja-JP", { timeZone: "Asia/Tokyo" }));
const isBirthday = new Date().toISOString().slice(5, 10) === "10-30";
const getAge = new Date().getFullYear() - 1989;

Expand Down

0 comments on commit 3efdf4b

Please sign in to comment.