Skip to content

Instantly share code, notes, and snippets.

@shangyilim
Created July 31, 2020 17:13
Show Gist options
  • Save shangyilim/cfbe5e8a716c5e3120447736ee4e778e to your computer and use it in GitHub Desktop.
Save shangyilim/cfbe5e8a716c5e3120447736ee4e778e to your computer and use it in GitHub Desktop.
exports.scheduledFunctionCrontab = functions.pubsub.schedule('5 11 * * *')
.timeZone('America/New_York') // Users can choose timezone - default is America/Los_Angeles
.onRun((context) => {
console.log('Convert your Firestore collection to CSVs every day at 11:05 AM Eastern!');
return null;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment