Add timezone selector

This commit is contained in:
natsoni
2024-11-13 17:00:32 +01:00
parent 5a3ee725b8
commit 9e5b7436d4
9 changed files with 116 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core';
import { StateService } from '@app/services/state.service';
@Component({
selector: 'app-timestamp',
@@ -16,6 +17,10 @@ export class TimestampComponent implements OnChanges {
seconds: number | undefined = undefined;
constructor(
public stateService: StateService,
) { }
ngOnChanges(): void {
if (this.unixTime) {
this.seconds = this.unixTime;