From 3f89b2aa77a49cd64f8691f41800a73ca9874528 Mon Sep 17 00:00:00 2001 From: Senyoret1 <34079003+Senyoret1@users.noreply.github.com> Date: Mon, 21 May 2018 13:48:43 -0400 Subject: [PATCH] Change timestamps format and timezone --- src/app/app.module.ts | 6 +++++- .../address-detail.component.html | 2 +- .../block-details/block-details.component.html | 2 +- .../pages/blocks/blocks.component.html | 2 +- .../transaction-detail.component.html | 4 ++-- .../unconfirmed-transactions.component.html | 6 +++--- .../unspent-outputs.component.html | 2 +- src/app/pipes/explorer-date.pipe.spec.ts | 8 ++++++++ src/app/pipes/explorer-date.pipe.ts | 17 +++++++++++++++++ 9 files changed, 39 insertions(+), 10 deletions(-) create mode 100644 src/app/pipes/explorer-date.pipe.spec.ts create mode 100644 src/app/pipes/explorer-date.pipe.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 6cf468bc..66263c26 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -27,6 +27,8 @@ import { TranslateModule, TranslateLoader } from '@ngx-translate/core'; import { AppTranslateLoader } from 'app/app.translate-loader'; import { GenericHeaderComponent } from 'app/components/layout/generic-header/generic-header.component'; import { GenericFooterComponent } from 'app/components/layout/generic-footer/generic-footer.component'; +import { ExplorerDatePipe } from 'app/pipes/explorer-date.pipe'; +import { DatePipe } from '@angular/common'; const ROUTES = [ @@ -93,6 +95,7 @@ const ROUTES = [ RichlistComponent, UnspentOutputsComponent, CopyButtonComponent, + ExplorerDatePipe, ], imports: [ BrowserModule, @@ -110,7 +113,8 @@ const ROUTES = [ providers: [ ApiService, ExplorerService, - {provide: RouteReuseStrategy, useClass: AppReuseStrategy} + {provide: RouteReuseStrategy, useClass: AppReuseStrategy}, + DatePipe, ], bootstrap: [AppComponent] }) diff --git a/src/app/components/pages/address-detail/address-detail.component.html b/src/app/components/pages/address-detail/address-detail.component.html index a0b16568..cd122a37 100644 --- a/src/app/components/pages/address-detail/address-detail.component.html +++ b/src/app/components/pages/address-detail/address-detail.component.html @@ -38,7 +38,7 @@