Skip to content

Commit

Permalink
Modify src/App.tsx
Browse files Browse the repository at this point in the history
倉敷美観地区編#2 公開日変更対応での変更を戻した
  • Loading branch information
denkiuo604 committed Aug 1, 2022
1 parent 5bed0d9 commit b08bdc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ function App() {
const [today, setToday] = useState(new Date());

// 公開日時設定用変数
const pubDay = 6;
const pubDay = 4;
const pubHour = 18 - today.getTimezoneOffset() / 60 - 9; // UTC+9
const pubMinute = 30;
const pubMinute = 0;
const [pubMonth, pubWeek] = getPubMonthAndWeek(today);
const tmpToday = new Date(today.getTime());
tmpToday.setMonth(pubMonth);
Expand Down Expand Up @@ -113,7 +113,7 @@ function App() {
// 初期値: 当月の第2木曜日
var month = date.getMonth();
var week = 2;
var anotherWeek = 5;
var anotherWeek = 4;
if (getDateWithPubTime(getNthDay(date, anotherWeek, pubDay)) < date) {
// 次月の第2木曜日
month += 1;
Expand Down

0 comments on commit b08bdc8

Please sign in to comment.