You've already forked openaccounting-web
forked from cybercinch/openaccounting-web
use timezone everywhere
This commit is contained in:
@@ -7,6 +7,7 @@ import { SessionService } from '../core/session.service';
|
||||
import { Transaction, Split } from '../shared/transaction';
|
||||
import { Org } from '../shared/org';
|
||||
import { Account, AccountTree } from '../shared/account';
|
||||
import { Util } from '../shared/util';
|
||||
import { TxListPage } from '../transaction/list';
|
||||
import { IncomeReport } from '../reports/income';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
@@ -46,11 +47,12 @@ export class DashboardPage implements OnInit {
|
||||
ngOnInit() {
|
||||
this.sessionService.setLoading(true);
|
||||
this.log.debug('dashboard init');
|
||||
let periodStart = this.accountService.getPeriodStart();
|
||||
|
||||
this.org = this.orgService.getCurrentOrg();
|
||||
this.log.debug('org', this.org);
|
||||
|
||||
let periodStart = Util.getPeriodStart(this.org.timezone);
|
||||
|
||||
let tree$ = this.accountService.getAccountTreeWithPeriodBalance(periodStart);
|
||||
|
||||
tree$.do(tree => {
|
||||
|
||||
Reference in New Issue
Block a user