Skip to content

Commit

Permalink
[email protected]'s change on OpenFn.org
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksa-krolls committed Aug 22, 2024
1 parent c14de39 commit cb5dcc6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bns/getKoboData.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ getValues(
fn(state => {
const { sheetsData } = state;

//console.log('Current cursor value:', state.lastEnd);
// Set a manual cursor if you'd like to only fetch data after this date...
const manualCursor = '';
//e.g., '2023-01-01T23:51:45.491+01:00'
const manualCursor = '';
console.log('manualCursor defined?', manualCursor);

//...otherwise the job will use this dynamicCursor
const dynamicCursor = getTodayISODate();
console.log('Dynamic cursor value:', dynamicCursor);


function getTodayISODate() {
const today = new Date();
today.setUTCHours(0, 0, 0, 0); // Set hours, minutes, seconds, and milliseconds to 0
Expand Down

0 comments on commit cb5dcc6

Please sign in to comment.