2222
2323import { AfterViewInit , Component , HostListener , OnDestroy } from '@angular/core' ;
2424import { Router } from '@angular/router' ;
25- import { KsDateTime , KsTimeZone , YMDDate } from 'ks-date- time-zone ' ;
26- import { toggleFullScreen } from 'ks- util' ;
27- import { debounce } from 'lodash' ;
25+ import { DateTime , Timezone , YMDDate } from '@tubular/ time' ;
26+ import { toggleFullScreen } from '@tubular/ util' ;
27+ import { debounce } from 'lodash-es ' ;
2828import { MenuItem , MessageService } from 'primeng/api' ;
2929import { Subscription , timer } from 'rxjs' ;
3030import { AppService , currentMinuteMillis , CurrentTab , PROPERTY_GREGORIAN_CHANGE_DATE , PROPERTY_NATIVE_DATE_TIME ,
@@ -41,10 +41,10 @@ const MIN_APP_HEIGHT = 640;
4141 providers : [ AppService , MessageService ]
4242} )
4343export class AppComponent implements AfterViewInit , OnDestroy {
44- private dateTime = new KsDateTime ( null , KsTimeZone . OS_ZONE ) ;
44+ private dateTime = new DateTime ( null , Timezone . OS_ZONE ) ;
4545 private _date = < YMDDate > { } ;
4646 private debouncedResize : ( ) => void ;
47- private _timeZone : KsTimeZone = KsTimeZone . OS_ZONE ;
47+ private _timeZone : Timezone = Timezone . OS_ZONE ;
4848 private _time : number = this . dateTime . utcTimeMillis ;
4949 private _trackTime = false ;
5050 private timer : Subscription ;
@@ -125,7 +125,7 @@ export class AppComponent implements AfterViewInit, OnDestroy {
125125 }
126126 }
127127
128- get timeZone ( ) : KsTimeZone { return this . _timeZone ; }
128+ get timezone ( ) : Timezone { return this . _timeZone ; }
129129
130130 get date ( ) : YMDDate {
131131 const wt = this . dateTime . wallTime ;
@@ -168,8 +168,8 @@ export class AppComponent implements AfterViewInit, OnDestroy {
168168 }
169169
170170 private updateTimeZone ( ) : void {
171- this . _timeZone = KsTimeZone . getTimeZone ( this . app . location . zone , this . app . location . longitude ) ;
172- this . dateTime . timeZone = this . _timeZone ;
171+ this . _timeZone = Timezone . getTimezone ( this . app . location . zone , this . app . location . longitude ) ;
172+ this . dateTime . timezone = this . _timeZone ;
173173
174174 if ( this . _timeZone . error )
175175 this . messageService . add ( { key : 'general' , severity : 'error' , summary : 'Failed to retrieve time zone' ,
0 commit comments