Asia/Tokyoなので、Firebase functionのpubsubページ内にあるサンプルコードで日時指定する際は次のようなコードになります。
exports.scheduledFunctionCrontab = functions.pubsub.schedule('5 11 * * *') .timeZone('Asia/Tokyo') // Users can choose timezone - default is America/Los_Angeles .onRun((context) => { console.log('This will be run every day at 11:05 AM Eastern!'); return null; });以下参考ページ:
https://firebase.google.com/docs/functions/schedule-functions?hl=ja
https://ja.wikipedia.org/wiki/Tz_database
コメントを残す