Commit 6c4ce12 1 parent ef4900f commit 6c4ce12 Copy full SHA for 6c4ce12
File tree 1 file changed +7
-7
lines changed
packages/sync-calendar/src
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ function main() {
29
29
const firstDayOfNextMonth = new Date (
30
30
now . getFullYear ( ) ,
31
31
now . getMonth ( ) + 1 ,
32
- 1
32
+ 1 ,
33
33
) ;
34
34
const firstDayOfFollowingMonth = new Date (
35
35
now . getFullYear ( ) ,
36
36
now . getMonth ( ) + 2 ,
37
- 1
37
+ 1 ,
38
38
) ;
39
39
40
40
// カレンダーオブジェクトを取得
@@ -48,23 +48,23 @@ function main() {
48
48
// 今月と来月のプライベート予定を削除
49
49
const existingEvents = workCal . getEvents (
50
50
firstDayOfMonth ,
51
- firstDayOfFollowingMonth
51
+ firstDayOfFollowingMonth ,
52
52
) ;
53
53
for ( const event of existingEvents ) {
54
- if ( event . getTitle ( ) . startsWith ( "プライベート予定 " ) ) {
54
+ if ( event . getTitle ( ) . startsWith ( "不在 " ) ) {
55
55
event . deleteEvent ( ) ;
56
56
}
57
57
}
58
58
59
59
// 個人カレンダーの予定を取得
60
60
const personalEvents = personalCal . getEvents (
61
61
firstDayOfMonth ,
62
- firstDayOfFollowingMonth
62
+ firstDayOfFollowingMonth ,
63
63
) ;
64
64
65
65
// 個人カレンダーの予定を社用カレンダーにコピー
66
66
for ( const event of personalEvents ) {
67
- const title = `プライベート予定` ; // ユニークなタイトルを生成
67
+ const title = "不在" ; // ユニークなタイトルを生成
68
68
69
69
// 社用カレンダーに予定を作成
70
70
const newEvent = workCal . createEvent (
@@ -73,7 +73,7 @@ function main() {
73
73
event . getEndTime ( ) ,
74
74
{
75
75
description : "この予定は個人用カレンダーから同期されています。" ,
76
- }
76
+ } ,
77
77
) ;
78
78
79
79
// イベントをプライベートに設定
You can’t perform that action at this time.
0 commit comments