You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by dg...@apache.org on 2020/12/16 12:26:43 UTC

[incubator-datalab] 06/06: Refactor localization service

This is an automated email from the ASF dual-hosted git repository.

dgnatyshyn pushed a commit to branch DATALAB-2182
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 7c4f998b2d3b9e3bc02e85a0f6dc5b2e416929f0
Author: Dmytro_Gnatyshyn <di...@ukr.net>
AuthorDate: Wed Dec 16 14:26:02 2020 +0200

    Refactor localization service
---
 .../resources/webapp/src/app/core/services/localization.service.ts  | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/localization.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/localization.service.ts
index 59793b1..401d3c6 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/services/localization.service.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/services/localization.service.ts
@@ -19,15 +19,11 @@
 
 import { Injectable } from '@angular/core';
 import { registerLocaleData } from '@angular/common';
-import * as _moment from 'moment';
-import 'moment-timezone';
-
 
 @Injectable({
   providedIn: 'root'
 })
 export class LocalizationService {
-  public timezone = _moment().format('Z');
   private _locale;
 
   constructor() {
@@ -47,8 +43,6 @@ export class LocalizationService {
   }
 
   public static registerCulture(culture: string) {
-    console.log(culture);
-
     if (culture.indexOf('-') !== -1 && culture !== 'en-GB') {
       culture = culture.substr(0, culture.indexOf('-'));
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org