Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

More precise date toggle

Chocobozzz639f73f4147f
diff --git a/client/src/app/shared/shared-main/date/date-toggle.component.ts b/client/src/app/shared/shared-main/date/date-toggle.component.ts
index 1f02c5abe0..cf8b325bbd 100644
--- a/client/src/app/shared/shared-main/date/date-toggle.component.ts
+++ b/client/src/app/shared/shared-main/date/date-toggle.component.ts
@@ -1,10 +1,11 @@
-import { Component, OnChanges, inject, input, model } from '@angular/core'
+import { ChangeDetectionStrategy, Component, OnChanges, inject, input, model } from '@angular/core'
import { FromNowPipe } from './from-now.pipe'
@Component({
selector: 'my-date-toggle',
templateUrl: './date-toggle.component.html',
styleUrls: [ './date-toggle.component.scss' ],
+ changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true
})
export class DateToggleComponent implements OnChanges {
@@ -40,6 +41,6 @@ export class DateToggleComponent implements OnChanges {
private updateDates () {
this.dateRelative = this.fromNowPipe.transform(this.date())
- this.dateAbsolute = this.date().toLocaleDateString()
+ this.dateAbsolute = this.date().toLocaleString()
}
}