You've already forked openaccounting-web
mirror of
https://github.com/openaccounting/oa-web.git
synced 2025-12-12 07:10:39 +13:00
use timezone everywhere
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
</div>
|
||||
<div class="row" *ngFor="let recentTx of recentTxs" [routerLink]="'/accounts/'+recentTx.account.id+'/transactions'" [ngClass]="{hidden: recentTx.hidden}">
|
||||
<div class="col-3 col-md-2 date">
|
||||
{{recentTx.tx.date | date:"M/d"}}
|
||||
{{recentTx.tx.date | datetz:"M/D":org.timezone}}
|
||||
</div>
|
||||
<div class="col-5 col-md-6 description">
|
||||
{{recentTx.tx.description}}
|
||||
|
||||
@@ -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