mirror of
https://github.com/jwetzell/itsfiveoclockwhere.git
synced 2026-08-14 19:53:42 +00:00
update dependendencies
This commit is contained in:
+16
-13
@@ -23,19 +23,22 @@ export class AppComponent {
|
||||
private timezoneService: TimezoneService,
|
||||
private googleAnalyticsService: GoogleAnalyticsService,
|
||||
){
|
||||
this.timezones = this.timezoneService.getTimezones()
|
||||
var second = interval(1000).pipe(startWith(0))
|
||||
|
||||
second.subscribe(()=>{
|
||||
this.fiveOclocks = [];
|
||||
this.timezoneService.getCurrentTimeInTimezones(this.timezones).forEach((timezoneObj)=>{
|
||||
if(timezoneObj.time?.hour === 17){
|
||||
this.fiveOclocks.push(timezoneObj);
|
||||
}
|
||||
})
|
||||
this.fiveOclock = GetClosestTimezoneFrom(this.timezoneService.getCurrentTimezone(), this.fiveOclocks)
|
||||
})
|
||||
|
||||
const currentTimezone = this.timezoneService.getCurrentTimezone()
|
||||
if(currentTimezone){
|
||||
this.timezones = this.timezoneService.getTimezones()
|
||||
|
||||
var second = interval(1000).pipe(startWith(0))
|
||||
|
||||
second.subscribe(()=>{
|
||||
this.fiveOclocks = [];
|
||||
this.timezoneService.getCurrentTimeInTimezones(this.timezones).forEach((timezoneObj)=>{
|
||||
if(timezoneObj.time?.hour === 17){
|
||||
this.fiveOclocks.push(timezoneObj);
|
||||
}
|
||||
})
|
||||
this.fiveOclock = GetClosestTimezoneFrom(currentTimezone, this.fiveOclocks)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
Reference in New Issue
Block a user