Skip to content

Commit

Permalink
fix tz
Browse files Browse the repository at this point in the history
  • Loading branch information
pathikrit committed Nov 5, 2023
1 parent 95a8975 commit bdde35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const config = {
}

/** Returns last n days (including today), if timezone is not specified we assume the earliest timezone i.e. UTC+14 */
const recentDays = (n, timezone = 'GMT-10') => _.range(n).map(i => dayjs().tz(timezone).subtract(i, 'days').format('YYYY-MM-DD'))
const recentDays = (n, timezone = 'Etc/GMT-14') => _.range(n).map(i => dayjs().tz(timezone).subtract(i, 'days').format('YYYY-MM-DD'))

/** Downloads all newspapers for all recent days; trashes old ones */
const downloadAll = () => {
Expand Down

0 comments on commit bdde35c

Please sign in to comment.