bnz-ynab-sync
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const moment_1 = __importDefault(require("moment")); | ||
const moment_timezone_1 = __importDefault(require("moment-timezone")); | ||
// tslint:disable max-classes-per-file | ||
@@ -48,5 +48,7 @@ class BnzClient { | ||
} | ||
async exportAccount(accountName, fromDate = moment_1.default() | ||
async exportAccount(accountName, fromDate = moment_timezone_1.default() | ||
.tz('Pacific/Auckland') | ||
.subtract(4, "days") | ||
.format("YYYY-MM-DD"), toDate = moment_1.default() | ||
.format("YYYY-MM-DD"), toDate = moment_timezone_1.default() | ||
.tz('Pacific/Auckland') | ||
.subtract(1, "day") | ||
@@ -53,0 +55,0 @@ .format("YYYY-MM-DD")) { |
{ | ||
"name": "bnz-ynab-sync", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Import BNZ transactions into YNAB", | ||
@@ -20,2 +20,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@types/moment-timezone": "^0.5.9", | ||
"@types/node": "^10.12.5", | ||
@@ -31,2 +32,3 @@ "@types/pino": "^5.8.1", | ||
"moment": "^2.22.2", | ||
"moment-timezone": "^0.5.23", | ||
"ofx-js": "^0.1.1", | ||
@@ -33,0 +35,0 @@ "puppeteer": "^1.10.0", |
@@ -1,2 +0,2 @@ | ||
import moment from "moment"; | ||
import moment from "moment-timezone"; | ||
import { Browser, Page } from "puppeteer"; | ||
@@ -71,5 +71,7 @@ // tslint:disable max-classes-per-file | ||
fromDate: string = moment() | ||
.tz('Pacific/Auckland') | ||
.subtract(4, "days") | ||
.format("YYYY-MM-DD"), | ||
toDate: string = moment() | ||
.tz('Pacific/Auckland') | ||
.subtract(1, "day") | ||
@@ -76,0 +78,0 @@ .format("YYYY-MM-DD") |
Sorry, the diff of this file is not supported yet
25268
563
5
8
+ Addedmoment-timezone@^0.5.23
+ Addedmoment-timezone@0.5.46(transitive)