Skip to content
Snippets Groups Projects
Commit c6471354 authored by Gergely Reményi's avatar Gergely Reményi
Browse files

Make dates prettier

parent 6d975be2
Branches
No related tags found
1 merge request!1small page rework
import { NgModule } from '@angular/core'; import { LOCALE_ID, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
...@@ -19,6 +19,9 @@ import { ServiceInListComponent } from './core/service-in-list/service-in-list.c ...@@ -19,6 +19,9 @@ import { ServiceInListComponent } from './core/service-in-list/service-in-list.c
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { LoaderComponent } from './shared/loader/loader.component'; import { LoaderComponent } from './shared/loader/loader.component';
import { ErrorDialogComponent } from './shared/error-dialog/error-dialog.component'; import { ErrorDialogComponent } from './shared/error-dialog/error-dialog.component';
import { registerLocaleData } from '@angular/common';
import localeHu from '@angular/common/locales/hu';
registerLocaleData(localeHu, 'hu');
@NgModule({ @NgModule({
declarations: [ declarations: [
...@@ -41,7 +44,8 @@ import { ErrorDialogComponent } from './shared/error-dialog/error-dialog.compone ...@@ -41,7 +44,8 @@ import { ErrorDialogComponent } from './shared/error-dialog/error-dialog.compone
provide: HTTP_INTERCEPTORS, provide: HTTP_INTERCEPTORS,
useClass: ErrorInterceptor, useClass: ErrorInterceptor,
multi: true, multi: true,
} },
{ provide: LOCALE_ID, useValue: 'hu'}
], ],
bootstrap: [AppComponent], bootstrap: [AppComponent],
}) })
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
</div> </div>
<div class='border-top mt-3 pt-3' *ngFor='let history of service.history; TrackBy: trackById'> <div class='border-top mt-3 pt-3' *ngFor='let history of service.history; TrackBy: trackById'>
<div> <div>
{{history.createdAt | date: "full"}} {{history.createdAt | date: 'yyyy. MMM dd. hh:mm:ss'}}
</div> </div>
<div> <div>
{{history.description}} {{history.description}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment