File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ export async function fetchLinks (event) {
3737
3838 const fallbackImageClient = createFallbackImageClient ( process . env . UNSPLASH_ACCESS_KEY )
3939
40- const now = moment . tz ( 'Etc/UTC' )
41- const referenceMoment = now
40+ const referenceMoment = moment ( new Date ( event . config . time ) )
4241 . clone ( )
4342 . subtract ( '1' , 'week' )
4443 . startOf ( 'day' )
44+ console . log ( JSON . stringify ( { message : 'Reference moment' , referenceMoment : referenceMoment . format ( ) } ) )
4545
4646 const nextIssue = event . NextIssue . number
4747 const campaignName = `fullstackBulletin-${ nextIssue } `
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ Resources:
146146 CodeUri : functions/fetch-links/
147147 Handler : handler.fetchLinks
148148 Runtime : nodejs20.x
149- Timeout : 60
149+ Timeout : 120
150150 Architectures :
151151 - x86_64
152152 Policies :
You can’t perform that action at this time.
0 commit comments