File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2727 with :
2828 netlify-token : ${{ secrets.NETLIFY_TOKEN }}
2929 netlify-site-id : ${{ secrets.NETLIFY_SITE }}
30- days : 0
30+ days : -1
3131 disable-header : true
3232 - uses : niklasmerz/csv-to-google-spreadsheet@master
3333 with :
Original file line number Diff line number Diff line change @@ -18,11 +18,15 @@ endDate.setUTCMinutes(59);
1818endDate . setUTCSeconds ( 59 ) ;
1919endDate . setUTCMilliseconds ( 999 ) ;
2020
21+ if ( days < 0 ) {
22+ startDate . setDate ( startDate . getDate ( ) - ( days * - 1 ) ) ;
23+ endDate . setDate ( endDate . getDate ( ) - ( days * - 1 ) ) ;
24+ }
25+
2126if ( days > 0 ) {
2227 startDate . setDate ( endDate . getDate ( ) - days ) ;
2328}
2429
25-
2630let timezone = startDate . getTimezoneOffset ( ) / 60 * - 100 ;
2731if ( timezone >= 1000 ) {
2832 timezone = "+" + timezone ;
You can’t perform that action at this time.
0 commit comments