ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix locale date format
Chocobozzz57d9e96d63a4
diff --git a/client/src/app/+accounts/accounts.component.html b/client/src/app/+accounts/accounts.component.htmlindex c3d7dadd32..b90a1a97b6 100644--- a/client/src/app/+accounts/accounts.component.html+++ b/client/src/app/+accounts/accounts.component.html@@ -10,7 +10,7 @@<div class="actor-info"><div><div class="actor-display-name align-items-center">- <h1 i18n-title [title]="'Created on ' + (account.createdAt | date)">{{ account.displayName }}</h1>+ <h1 i18n-title [title]="'Created on ' + (account.createdAt | ptDate)">{{ account.displayName }}</h1><my-user-moderation-dropdownclass="mx-3" [prependActions]="prependModerationActions"diff --git a/client/src/app/+accounts/accounts.component.ts b/client/src/app/+accounts/accounts.component.tsindex 88a900c1a6..80b5f1708f 100644--- a/client/src/app/+accounts/accounts.component.ts+++ b/client/src/app/+accounts/accounts.component.ts@@ -1,4 +1,4 @@-import { DatePipe, NgClass, NgIf } from '@angular/common'+import { NgClass, NgIf } from '@angular/common'import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core'import { ActivatedRoute, Router, RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router'import { AuthService, MarkdownService, MetaService, Notifier, RedirectService, RestExtractor, ScreenService, UserService } from '@app/core'@@ -7,6 +7,7 @@ import { AccountService } from '@app/shared/shared-main/account/account.service'import { DropdownAction } from '@app/shared/shared-main/buttons/action-dropdown.component'import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { HorizontalMenuComponent, HorizontalMenuEntry } from '@app/shared/shared-main/menu/horizontal-menu.component'import { VideoService } from '@app/shared/shared-main/video/video.service'import { BlocklistService } from '@app/shared/shared-moderation/blocklist.service'@@ -41,7 +42,7 @@ import { SubscribeButtonComponent } from '../shared/shared-user-subscription/subSimpleSearchInputComponent,RouterOutlet,AccountReportComponent,- DatePipe,+ PTDatePipe,HorizontalMenuComponent]})diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.htmlindex c665dce361..9d24d5d92d 100644--- a/client/src/app/+admin/follows/followers-list/followers-list.component.html+++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html@@ -60,7 +60,7 @@</td><td>{{ follow.score }}</td>- <td>{{ follow.createdAt | date: 'short' }}</td>+ <td>{{ follow.createdAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.ts b/client/src/app/+admin/follows/followers-list/followers-list.component.tsindex de638f1b07..60f3f267b0 100644--- a/client/src/app/+admin/follows/followers-list/followers-list.component.ts+++ b/client/src/app/+admin/follows/followers-list/followers-list.component.ts@@ -1,18 +1,19 @@-import { SortMeta, SharedModule } from 'primeng/api'+import { NgIf } from '@angular/common'import { Component, OnInit } from '@angular/core'import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'import { formatICU } from '@app/helpers'-import { ActorFollow } from '@peertube/peertube-models'-import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'-import { DeleteButtonComponent } from '../../../shared/shared-main/buttons/delete-button.component'-import { ButtonComponent } from '../../../shared/shared-main/buttons/button.component'+import { InstanceFollowService } from '@app/shared/shared-instance/instance-follow.service'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'-import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'-import { ActionDropdownComponent, DropdownAction } from '../../../shared/shared-main/buttons/action-dropdown.component'-import { NgIf, DatePipe } from '@angular/common'+import { ActorFollow } from '@peertube/peertube-models'+import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'+import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'-import { InstanceFollowService } from '@app/shared/shared-instance/instance-follow.service'+import { ActionDropdownComponent, DropdownAction } from '../../../shared/shared-main/buttons/action-dropdown.component'+import { ButtonComponent } from '../../../shared/shared-main/buttons/button.component'+import { DeleteButtonComponent } from '../../../shared/shared-main/buttons/delete-button.component'+import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'@Component({selector: 'my-followers-list',@@ -30,7 +31,7 @@ import { InstanceFollowService } from '@app/shared/shared-instance/instance-follButtonComponent,DeleteButtonComponent,AutoColspanDirective,- DatePipe+ PTDatePipe]})export class FollowersListComponent extends RestTable <ActorFollow> implements OnInit {diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.htmlindex b41baa5d47..f35bf62615 100644--- a/client/src/app/+admin/follows/following-list/following-list.component.html+++ b/client/src/app/+admin/follows/following-list/following-list.component.html@@ -63,7 +63,7 @@<span *ngIf="follow.state === 'rejected'" class="pt-badge badge-red" i18n>Rejected</span></td>- <td>{{ follow.createdAt | date: 'short' }}</td>+ <td>{{ follow.createdAt | ptDate: 'short' }}</td><td><my-redundancy-checkbox*ngIf="isInstanceFollowing(follow)"diff --git a/client/src/app/+admin/follows/following-list/following-list.component.ts b/client/src/app/+admin/follows/following-list/following-list.component.tsindex 5d63c4b431..d0f7e18c7e 100644--- a/client/src/app/+admin/follows/following-list/following-list.component.ts+++ b/client/src/app/+admin/follows/following-list/following-list.component.ts@@ -1,8 +1,9 @@-import { DatePipe, NgIf } from '@angular/common'+import { NgIf } from '@angular/common'import { Component, OnInit, ViewChild } from '@angular/core'import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'import { formatICU } from '@app/helpers'import { InstanceFollowService } from '@app/shared/shared-instance/instance-follow.service'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { ActorFollow } from '@peertube/peertube-models'import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'@@ -30,7 +31,7 @@ import { FollowModalComponent } from './follow-modal.component'RedundancyCheckboxComponent,AutoColspanDirective,FollowModalComponent,- DatePipe,+ PTDatePipe,ButtonComponent]})diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.htmlindex 9de6e4661b..4976cf38ce 100644--- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.html+++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.html@@ -5,12 +5,12 @@<div><span class="label">Created on</span>- <span>{{ redundancyElement.createdAt | date: 'medium' }}</span>+ <span>{{ redundancyElement.createdAt | ptDate: 'medium' }}</span></div><div><span class="label">Expires on</span>- <span>{{ redundancyElement.expiresOn | date: 'medium' }}</span>+ <span>{{ redundancyElement.expiresOn | ptDate: 'medium' }}</span></div><div>diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.ts b/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.tsindex 7142cab443..a6e54ce80c 100644--- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.ts+++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.ts@@ -1,14 +1,14 @@import { Component, Input } from '@angular/core'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { FileRedundancyInformation, StreamingPlaylistRedundancyInformation } from '@peertube/peertube-models'import { BytesPipe } from '../../../shared/shared-main/common/bytes.pipe'-import { DatePipe } from '@angular/common'@Component({selector: 'my-video-redundancy-information',templateUrl: './video-redundancy-information.component.html',styleUrls: [ './video-redundancy-information.component.scss' ],standalone: true,- imports: [ DatePipe, BytesPipe ]+ imports: [ PTDatePipe, BytesPipe ]})export class VideoRedundancyInformationComponent {@Input() redundancyElement: FileRedundancyInformation | StreamingPlaylistRedundancyInformationdiff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.ts b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.tsindex 219308a709..2c87ed938c 100644--- a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.ts+++ b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.ts@@ -1,14 +1,14 @@+import { NgIf } from '@angular/common'import { Component } from '@angular/core'-import { NgIf, DatePipe } from '@angular/common'-import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'-import { ActorAvatarComponent } from '../../../shared/shared-actor-image/actor-avatar.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'+import { GenericAccountBlocklistComponent } from '@app/shared/shared-moderation/account-blocklist.component'+import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.service'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'-import { AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'import { SharedModule } from 'primeng/api'import { TableModule } from 'primeng/table'-import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'-import { GenericAccountBlocklistComponent } from '@app/shared/shared-moderation/account-blocklist.component'-import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.service'+import { ActorAvatarComponent } from '../../../shared/shared-actor-image/actor-avatar.component'+import { AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'+import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'@Component({selector: 'my-instance-account-blocklist',@@ -16,7 +16,6 @@ import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.templateUrl: '../../../shared/shared-moderation/account-blocklist.component.html',standalone: true,imports: [- GlobalIconComponent,TableModule,SharedModule,AdvancedInputFilterComponent,@@ -24,7 +23,7 @@ import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.ActorAvatarComponent,AutoColspanDirective,NgIf,- DatePipe+ PTDatePipe]})export class InstanceAccountBlocklistComponent extends GenericAccountBlocklistComponent {diff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.tsindex 7b4343c7dc..32bef6d68a 100644--- a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts+++ b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts@@ -1,14 +1,15 @@+import { NgIf } from '@angular/common'import { Component } from '@angular/core'-import { BatchDomainsModalComponent } from '../../../shared/shared-moderation/batch-domains-modal.component'-import { NgIf, DatePipe } from '@angular/common'-import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'+import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.service'+import { GenericServerBlocklistComponent } from '@app/shared/shared-moderation/server-blocklist.component'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'-import { AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'import { SharedModule } from 'primeng/api'import { TableModule } from 'primeng/table'+import { AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'-import { GenericServerBlocklistComponent } from '@app/shared/shared-moderation/server-blocklist.component'-import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.service'+import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'+import { BatchDomainsModalComponent } from '../../../shared/shared-moderation/batch-domains-modal.component'@Component({selector: 'my-instance-server-blocklist',@@ -24,7 +25,7 @@ import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.AutoColspanDirective,NgIf,BatchDomainsModalComponent,- DatePipe+ PTDatePipe]})export class InstanceServerBlocklistComponent extends GenericServerBlocklistComponent {diff --git a/client/src/app/+admin/moderation/registration-list/registration-list.component.html b/client/src/app/+admin/moderation/registration-list/registration-list.component.htmlindex 054180fdf0..5080161501 100644--- a/client/src/app/+admin/moderation/registration-list/registration-list.component.html+++ b/client/src/app/+admin/moderation/registration-list/registration-list.component.html@@ -100,7 +100,7 @@{{ registration.moderationResponse }}</td>- <td class="c-hand" [pRowToggler]="registration">{{ registration.createdAt | date: 'short' }}</td>+ <td class="c-hand" [pRowToggler]="registration">{{ registration.createdAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/+admin/moderation/registration-list/registration-list.component.ts b/client/src/app/+admin/moderation/registration-list/registration-list.component.tsindex 4069c9b49b..3591f3dc3c 100644--- a/client/src/app/+admin/moderation/registration-list/registration-list.component.ts+++ b/client/src/app/+admin/moderation/registration-list/registration-list.component.ts@@ -1,20 +1,21 @@-import { SortMeta, SharedModule } from 'primeng/api'+import { NgClass, NgIf } from '@angular/common'import { Component, OnInit, ViewChild } from '@angular/core'import { ActivatedRoute, Router } from '@angular/router'import { ConfirmService, MarkdownService, Notifier, RestPagination, RestTable, ServerService } from '@app/core'import { formatICU } from '@app/helpers'-import { UserRegistration, UserRegistrationState } from '@peertube/peertube-models'-import { AdminRegistrationService } from './admin-registration.service'-import { ProcessRegistrationModalComponent } from './process-registration-modal.component'-import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'-import { UserEmailInfoComponent } from '../../shared/user-email-info.component'-import { TableExpanderIconComponent } from '../../../shared/shared-tables/table-expander-icon.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'-import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'-import { ActionDropdownComponent, DropdownAction } from '../../../shared/shared-main/buttons/action-dropdown.component'-import { NgIf, NgClass, DatePipe } from '@angular/common'+import { UserRegistration, UserRegistrationState } from '@peertube/peertube-models'+import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'+import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'+import { ActionDropdownComponent, DropdownAction } from '../../../shared/shared-main/buttons/action-dropdown.component'+import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'+import { TableExpanderIconComponent } from '../../../shared/shared-tables/table-expander-icon.component'+import { UserEmailInfoComponent } from '../../shared/user-email-info.component'+import { AdminRegistrationService } from './admin-registration.service'+import { ProcessRegistrationModalComponent } from './process-registration-modal.component'@Component({selector: 'my-registration-list',@@ -34,7 +35,7 @@ import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.coUserEmailInfoComponent,AutoColspanDirective,ProcessRegistrationModalComponent,- DatePipe+ PTDatePipe]})export class RegistrationListComponent extends RestTable <UserRegistration> implements OnInit {diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.htmlindex 8616726614..e8f811c2f2 100644--- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html+++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html@@ -62,7 +62,7 @@</td><td>- {{ videoBlock.createdAt | date: 'short' }}+ {{ videoBlock.createdAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.tsindex c033cff690..6b31dbd353 100644--- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts+++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts@@ -1,24 +1,25 @@-import { SortMeta, SharedModule } from 'primeng/api'-import { switchMap } from 'rxjs/operators'-import { environment } from 'src/environments/environment'+import { NgClass, NgIf } from '@angular/common'import { Component, OnInit } from '@angular/core'import { ActivatedRoute, Router } from '@angular/router'import { ConfirmService, MarkdownService, Notifier, RestPagination, RestTable, ServerService } from '@app/core'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'+import { VideoService } from '@app/shared/shared-main/video/video.service'+import { VideoBlockService } from '@app/shared/shared-moderation/video-block.service'+import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'import { buildVideoEmbedLink, decorateVideoLink } from '@peertube/peertube-core-utils'import { VideoBlacklist, VideoBlacklistType, VideoBlacklistType_Type } from '@peertube/peertube-models'import { buildVideoOrPlaylistEmbed } from '@root-helpers/video'-import { EmbedComponent } from '../../../shared/shared-main/video/embed.component'-import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'-import { VideoCellComponent } from '../../../shared/shared-tables/video-cell.component'-import { ActionDropdownComponent, DropdownAction } from '../../../shared/shared-main/buttons/action-dropdown.component'-import { TableExpanderIconComponent } from '../../../shared/shared-tables/table-expander-icon.component'-import { NgIf, NgClass, DatePipe } from '@angular/common'-import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'-import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'+import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'+import { switchMap } from 'rxjs/operators'+import { environment } from 'src/environments/environment'+import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'-import { VideoService } from '@app/shared/shared-main/video/video.service'-import { VideoBlockService } from '@app/shared/shared-moderation/video-block.service'+import { ActionDropdownComponent, DropdownAction } from '../../../shared/shared-main/buttons/action-dropdown.component'+import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'+import { EmbedComponent } from '../../../shared/shared-main/video/embed.component'+import { TableExpanderIconComponent } from '../../../shared/shared-tables/table-expander-icon.component'+import { VideoCellComponent } from '../../../shared/shared-tables/video-cell.component'@Component({selector: 'my-video-block-list',@@ -38,7 +39,7 @@ import { VideoBlockService } from '@app/shared/shared-moderation/video-block.serVideoCellComponent,AutoColspanDirective,EmbedComponent,- DatePipe+ PTDatePipe]})export class VideoBlockListComponent extends RestTable implements OnInit {diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.html b/client/src/app/+admin/overview/users/user-list/user-list.component.htmlindex 4420c57330..48f344dd51 100644--- a/client/src/app/+admin/overview/users/user-list/user-list.component.html+++ b/client/src/app/+admin/overview/users/user-list/user-list.component.html@@ -142,9 +142,9 @@<span *ngIf="user.pluginAuth" [ngbTooltip]="user.pluginAuth">{{ user.pluginAuth }}</span></td>- <td *ngIf="isSelected('createdAt')" [title]="user.createdAt">{{ user.createdAt | date: 'short' }}</td>+ <td *ngIf="isSelected('createdAt')" [title]="user.createdAt">{{ user.createdAt | ptDate: 'short' }}</td>- <td *ngIf="isSelected('lastLoginDate')" [title]="user.lastLoginDate">{{ user.lastLoginDate | date: 'short' }}</td>+ <td *ngIf="isSelected('lastLoginDate')" [title]="user.lastLoginDate">{{ user.lastLoginDate | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.ts b/client/src/app/+admin/overview/users/user-list/user-list.component.tsindex ac46127f06..af5577f78f 100644--- a/client/src/app/+admin/overview/users/user-list/user-list.component.ts+++ b/client/src/app/+admin/overview/users/user-list/user-list.component.ts@@ -1,14 +1,16 @@-import { DatePipe, NgClass, NgIf } from '@angular/common'+import { NgClass, NgIf } from '@angular/common'import { Component, OnInit, ViewChild } from '@angular/core'import { FormsModule } from '@angular/forms'import { ActivatedRoute, Router, RouterLink } from '@angular/router'import { AuthService, ConfirmService, LocalStorageService, Notifier, RestPagination, RestTable } from '@app/core'import { formatICU, getAPIHost } from '@app/helpers'import { Actor } from '@app/shared/shared-main/account/actor.model'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'+import { ProgressBarComponent } from '@app/shared/shared-main/common/progress-bar.component'import { BlocklistService } from '@app/shared/shared-moderation/blocklist.service'import { UserBanModalComponent } from '@app/shared/shared-moderation/user-ban-modal.component'import { UserAdminService } from '@app/shared/shared-users/user-admin.service'-import { NgbDropdown, NgbDropdownItem, NgbDropdownMenu, NgbDropdownToggle, NgbTooltip } from '@ng-bootstrap/ng-bootstrap'+import { NgbDropdown, NgbDropdownMenu, NgbDropdownToggle, NgbTooltip } from '@ng-bootstrap/ng-bootstrap'import { User, UserRole, UserRoleType } from '@peertube/peertube-models'import { logger } from '@root-helpers/logger'import { SharedModule, SortMeta } from 'primeng/api'@@ -18,9 +20,9 @@ import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../../simport { PeertubeCheckboxComponent } from '../../../../shared/shared-forms/peertube-checkbox.component'import { SelectCheckboxComponent } from '../../../../shared/shared-forms/select/select-checkbox.component'import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'+import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'import { AutoColspanDirective } from '../../../../shared/shared-main/common/auto-colspan.directive'import { BytesPipe } from '../../../../shared/shared-main/common/bytes.pipe'-import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'import {AccountMutedStatus,UserModerationDisplayType,@@ -28,7 +30,6 @@ import {} from '../../../../shared/shared-moderation/user-moderation-dropdown.component'import { TableExpanderIconComponent } from '../../../../shared/shared-tables/table-expander-icon.component'import { UserEmailInfoComponent } from '../../../shared/user-email-info.component'-import { ProgressBarComponent } from '@app/shared/shared-main/common/progress-bar.component'type UserForList = User & {rawVideoQuota: number@@ -53,7 +54,6 @@ type UserForList = User & {NgbDropdown,NgbDropdownToggle,NgbDropdownMenu,- NgbDropdownItem,SelectCheckboxComponent,FormsModule,PeertubeCheckboxComponent,@@ -65,7 +65,7 @@ type UserForList = User & {UserEmailInfoComponent,AutoColspanDirective,UserBanModalComponent,- DatePipe,+ PTDatePipe,BytesPipe,ProgressBarComponent]diff --git a/client/src/app/+admin/overview/videos/video-list.component.html b/client/src/app/+admin/overview/videos/video-list.component.htmlindex 7e65384516..87ccc54419 100644--- a/client/src/app/+admin/overview/videos/video-list.component.html+++ b/client/src/app/+admin/overview/videos/video-list.component.html@@ -106,7 +106,7 @@</td><td>- {{ video.publishedAt | date: 'short' }}+ {{ video.publishedAt | ptDate: 'short' }}</td></tr>diff --git a/client/src/app/+admin/overview/videos/video-list.component.ts b/client/src/app/+admin/overview/videos/video-list.component.tsindex 63b3141559..8b66b7969c 100644--- a/client/src/app/+admin/overview/videos/video-list.component.ts+++ b/client/src/app/+admin/overview/videos/video-list.component.ts@@ -1,8 +1,9 @@-import { DatePipe, NgClass, NgFor, NgIf } from '@angular/common'+import { NgClass, NgFor, NgIf } from '@angular/common'import { Component, OnInit, ViewChild } from '@angular/core'import { ActivatedRoute, Router, RouterLink } from '@angular/router'import { AuthService, ConfirmService, Notifier, RestPagination, RestTable, ServerService } from '@app/core'import { formatICU } from '@app/helpers'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { VideoCaptionService } from '@app/shared/shared-main/video-caption/video-caption.service'import { VideoDetails } from '@app/shared/shared-main/video/video-details.model'import { VideoFileTokenService } from '@app/shared/shared-main/video/video-file-token.service'@@ -19,10 +20,10 @@ import { TableModule, TableRowExpandEvent } from 'primeng/table'import { finalize } from 'rxjs/operators'import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'-import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'-import { BytesPipe } from '../../../shared/shared-main/common/bytes.pipe'import { ActionDropdownComponent, DropdownAction } from '../../../shared/shared-main/buttons/action-dropdown.component'import { ButtonComponent } from '../../../shared/shared-main/buttons/button.component'+import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'+import { BytesPipe } from '../../../shared/shared-main/common/bytes.pipe'import { EmbedComponent } from '../../../shared/shared-main/video/embed.component'import { TableExpanderIconComponent } from '../../../shared/shared-tables/table-expander-icon.component'import { VideoCellComponent } from '../../../shared/shared-tables/video-cell.component'@@ -54,7 +55,7 @@ import { VideoAdminService } from './video-admin.service'NgFor,EmbedComponent,VideoBlockComponent,- DatePipe,+ PTDatePipe,RouterLink,BytesPipe]diff --git a/client/src/app/+admin/system/logs/logs.component.html b/client/src/app/+admin/system/logs/logs.component.htmlindex de603680b3..7afc65e46f 100644--- a/client/src/app/+admin/system/logs/logs.component.html+++ b/client/src/app/+admin/system/logs/logs.component.html@@ -16,7 +16,7 @@<my-select-options inputId="log-start-date" [items]="timeChoices" [(ngModel)]="startDate" (ngModelChange)="refresh()"><ng-template ptTemplate="item" let-item>- {{ item.label }} ({{ item.id | date: item.dateFormat }} - <span i18n>now</span>)+ {{ item.label }} ({{ item.id | ptDate: item.dateFormat }} - <span i18n>now</span>)</ng-template></my-select-options></div>diff --git a/client/src/app/+admin/system/logs/logs.component.ts b/client/src/app/+admin/system/logs/logs.component.tsindex ea2fe38769..d03e6d95b5 100644--- a/client/src/app/+admin/system/logs/logs.component.ts+++ b/client/src/app/+admin/system/logs/logs.component.ts@@ -1,9 +1,9 @@-import { DatePipe, NgClass, NgFor, NgIf } from '@angular/common'+import { NgClass, NgFor, NgIf } from '@angular/common'import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'import { FormsModule } from '@angular/forms'import { LocalStorageService, Notifier } from '@app/core'import { SelectOptionsComponent } from '@app/shared/shared-forms/select/select-options.component'-import { GlobalIconComponent } from '@app/shared/shared-icons/global-icon.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { PeerTubeTemplateDirective } from '@app/shared/shared-main/common/peertube-template.directive'import { ServerLogLevel } from '@peertube/peertube-models'import { SelectTagsComponent } from '../../../shared/shared-forms/select/select-tags.component'@@ -23,9 +23,8 @@ import { LogsService } from './logs.service'NgClass,SelectTagsComponent,ButtonComponent,- DatePipe,+ PTDatePipe,CopyButtonComponent,- GlobalIconComponent,SelectOptionsComponent,PeerTubeTemplateDirective]diff --git a/client/src/app/+admin/system/runners/runner-list/runner-list.component.html b/client/src/app/+admin/system/runners/runner-list/runner-list.component.htmlindex 08eb4ca42b..b6d6e78ece 100644--- a/client/src/app/+admin/system/runners/runner-list/runner-list.component.html+++ b/client/src/app/+admin/system/runners/runner-list/runner-list.component.html@@ -32,9 +32,9 @@<td>{{ runner.ip }}</td>- <td>{{ runner.lastContact | date: 'short' }}</td>+ <td>{{ runner.lastContact | ptDate: 'short' }}</td>- <td>{{ runner.createdAt | date: 'short' }}</td>+ <td>{{ runner.createdAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/+admin/system/runners/runner-list/runner-list.component.ts b/client/src/app/+admin/system/runners/runner-list/runner-list.component.tsindex 2e8736a2dd..44d061632d 100644--- a/client/src/app/+admin/system/runners/runner-list/runner-list.component.ts+++ b/client/src/app/+admin/system/runners/runner-list/runner-list.component.ts@@ -1,29 +1,25 @@-import { SortMeta, SharedModule } from 'primeng/api'import { Component, OnInit } from '@angular/core'import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'-import { Runner } from '@peertube/peertube-models'-import { RunnerService } from '../runner.service'-import { DatePipe } from '@angular/common'-import { AutoColspanDirective } from '../../../../shared/shared-main/common/auto-colspan.directive'-import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'+import { Runner } from '@peertube/peertube-models'+import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'-import { RouterLink } from '@angular/router'-import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'+import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'+import { AutoColspanDirective } from '../../../../shared/shared-main/common/auto-colspan.directive'+import { RunnerService } from '../runner.service'@Component({selector: 'my-runner-list',templateUrl: './runner-list.component.html',standalone: true,imports: [- GlobalIconComponent,- RouterLink,TableModule,SharedModule,NgbTooltip,ActionDropdownComponent,AutoColspanDirective,- DatePipe+ PTDatePipe]})export class RunnerListComponent extends RestTable <Runner> implements OnInit {diff --git a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.htmlindex 8455df7be9..84635560bc 100644--- a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html+++ b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html@@ -41,7 +41,7 @@></my-copy-button></td>- <td>{{ registrationToken.createdAt | date: 'short' }}</td>+ <td>{{ registrationToken.createdAt | ptDate: 'short' }}</td><td>{{ registrationToken.registeredRunnersCount }}</td></tr>diff --git a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.ts b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.tsindex 69f2ab1d51..00c786718c 100644--- a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.ts+++ b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.ts@@ -1,17 +1,17 @@-import { SortMeta, SharedModule } from 'primeng/api'import { Component, OnInit } from '@angular/core'+import { RouterLink } from '@angular/router'import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'-import { RunnerRegistrationToken } from '@peertube/peertube-models'-import { RunnerService } from '../runner.service'-import { DatePipe } from '@angular/common'-import { AutoColspanDirective } from '../../../../shared/shared-main/common/auto-colspan.directive'-import { CopyButtonComponent } from '../../../../shared/shared-main/buttons/copy-button.component'-import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'-import { ButtonComponent } from '../../../../shared/shared-main/buttons/button.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'+import { RunnerRegistrationToken } from '@peertube/peertube-models'+import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'-import { RouterLink } from '@angular/router'import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'+import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'+import { ButtonComponent } from '../../../../shared/shared-main/buttons/button.component'+import { CopyButtonComponent } from '../../../../shared/shared-main/buttons/copy-button.component'+import { AutoColspanDirective } from '../../../../shared/shared-main/common/auto-colspan.directive'+import { RunnerService } from '../runner.service'@Component({selector: 'my-runner-registration-token-list',@@ -28,7 +28,7 @@ import { GlobalIconComponent } from '../../../../shared/shared-icons/global-iconActionDropdownComponent,CopyButtonComponent,AutoColspanDirective,- DatePipe+ PTDatePipe]})export class RunnerRegistrationTokenListComponent extends RestTable <RunnerRegistrationToken> implements OnInit {diff --git a/client/src/app/+my-account/my-account-blocklist/my-account-blocklist.component.ts b/client/src/app/+my-account/my-account-blocklist/my-account-blocklist.component.tsindex 4edebd6323..41eae74d82 100644--- a/client/src/app/+my-account/my-account-blocklist/my-account-blocklist.component.ts+++ b/client/src/app/+my-account/my-account-blocklist/my-account-blocklist.component.ts@@ -1,21 +1,20 @@+import { NgIf } from '@angular/common'import { Component } from '@angular/core'-import { NgIf, DatePipe } from '@angular/common'-import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'-import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'+import { GenericAccountBlocklistComponent } from '@app/shared/shared-moderation/account-blocklist.component'+import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.service'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'-import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'import { SharedModule } from 'primeng/api'import { TableModule } from 'primeng/table'-import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'-import { GenericAccountBlocklistComponent } from '@app/shared/shared-moderation/account-blocklist.component'-import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.service'+import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'+import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'+import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'@Component({selector: 'my-account-blocklist',templateUrl: '../../shared/shared-moderation/account-blocklist.component.html',standalone: true,imports: [- GlobalIconComponent,TableModule,SharedModule,AdvancedInputFilterComponent,@@ -23,7 +22,7 @@ import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.ActorAvatarComponent,AutoColspanDirective,NgIf,- DatePipe+ PTDatePipe]})export class MyAccountBlocklistComponent extends GenericAccountBlocklistComponent {diff --git a/client/src/app/+my-account/my-account-blocklist/my-account-server-blocklist.component.ts b/client/src/app/+my-account/my-account-blocklist/my-account-server-blocklist.component.tsindex 74decf0a0e..6710491316 100644--- a/client/src/app/+my-account/my-account-blocklist/my-account-server-blocklist.component.ts+++ b/client/src/app/+my-account/my-account-blocklist/my-account-server-blocklist.component.ts@@ -1,14 +1,15 @@+import { NgIf } from '@angular/common'import { Component } from '@angular/core'-import { BatchDomainsModalComponent } from '../../shared/shared-moderation/batch-domains-modal.component'-import { NgIf, DatePipe } from '@angular/common'-import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'+import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.service'+import { GenericServerBlocklistComponent } from '@app/shared/shared-moderation/server-blocklist.component'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'-import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'import { SharedModule } from 'primeng/api'import { TableModule } from 'primeng/table'+import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'-import { BlocklistComponentType } from '@app/shared/shared-moderation/blocklist.service'-import { GenericServerBlocklistComponent } from '@app/shared/shared-moderation/server-blocklist.component'+import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'+import { BatchDomainsModalComponent } from '../../shared/shared-moderation/batch-domains-modal.component'@Component({selector: 'my-account-server-blocklist',@@ -24,7 +25,7 @@ import { GenericServerBlocklistComponent } from '@app/shared/shared-moderation/sAutoColspanDirective,NgIf,BatchDomainsModalComponent,- DatePipe+ PTDatePipe]})export class MyAccountServerBlocklistComponent extends GenericServerBlocklistComponent {diff --git a/client/src/app/+my-account/my-account-import-export/my-account-export.component.html b/client/src/app/+my-account/my-account-import-export/my-account-export.component.htmlindex ccb0ce6070..703fabfcce 100644--- a/client/src/app/+my-account/my-account-import-export/my-account-export.component.html+++ b/client/src/app/+my-account/my-account-import-export/my-account-export.component.html@@ -46,7 +46,7 @@</tr><tr *ngFor="let export of userExports">- <td>{{ export.createdAt | date: 'medium' }}</td>+ <td>{{ export.createdAt | ptDate: 'medium' }}</td><td>{{ export.state.label }}</td><td>@@ -54,7 +54,7 @@</td><td>- <ng-container *ngIf="export.expiresOn">{{ export.expiresOn | date: 'medium' }}</ng-container>+ <ng-container *ngIf="export.expiresOn">{{ export.expiresOn | ptDate: 'medium' }}</ng-container></td><td>diff --git a/client/src/app/+my-account/my-account-import-export/my-account-export.component.ts b/client/src/app/+my-account/my-account-import-export/my-account-export.component.tsindex 267455e836..0a232b4fd9 100644--- a/client/src/app/+my-account/my-account-import-export/my-account-export.component.ts+++ b/client/src/app/+my-account/my-account-import-export/my-account-export.component.ts@@ -1,8 +1,9 @@-import { DatePipe, NgFor, NgIf } from '@angular/common'+import { NgFor, NgIf } from '@angular/common'import { Component, Input, OnInit, ViewChild } from '@angular/core'import { FormsModule } from '@angular/forms'import { AuthService, ServerService } from '@app/core'import { AlertComponent } from '@app/shared/shared-main/common/alert.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap'import { PeerTubeProblemDocument, ServerErrorCode, UserExport, UserExportState } from '@peertube/peertube-models'import { concatMap, from, of, switchMap, toArray } from 'rxjs'@@ -16,7 +17,7 @@ import { UserImportExportService } from './user-import-export.service'templateUrl: './my-account-export.component.html',styleUrls: [ './my-account-export.component.scss' ],standalone: true,- imports: [ NgIf, NgFor, GlobalIconComponent, PeertubeCheckboxComponent, FormsModule, DatePipe, BytesPipe, AlertComponent ]+ imports: [ NgIf, NgFor, GlobalIconComponent, PeertubeCheckboxComponent, FormsModule, PTDatePipe, BytesPipe, AlertComponent ]})export class MyAccountExportComponent implements OnInit {@ViewChild('exportModal', { static: true }) exportModal: NgbModaldiff --git a/client/src/app/+my-account/my-account-import-export/my-account-import.component.html b/client/src/app/+my-account/my-account-import-export/my-account-import.component.htmlindex 9cca9df51d..25bee31c24 100644--- a/client/src/app/+my-account/my-account-import-export/my-account-import.component.html+++ b/client/src/app/+my-account/my-account-import-export/my-account-import.component.html@@ -39,7 +39,7 @@<div class="mb-3" *ngIf="latestImport"><div>- <strong>Latest import on:</strong> {{ latestImport.createdAt | date: 'medium' }}+ <strong>Latest import on:</strong> {{ latestImport.createdAt | ptDate: 'medium' }}</div><div>diff --git a/client/src/app/+my-account/my-account-import-export/my-account-import.component.ts b/client/src/app/+my-account/my-account-import-export/my-account-import.component.tsindex 6b1dae1aea..eb32c4a6da 100644--- a/client/src/app/+my-account/my-account-import-export/my-account-import.component.ts+++ b/client/src/app/+my-account/my-account-import-export/my-account-import.component.ts@@ -1,10 +1,11 @@-import { DatePipe, NgIf } from '@angular/common'+import { NgIf } from '@angular/common'import { HttpErrorResponse } from '@angular/common/http'import { Component, Input, OnDestroy, OnInit } from '@angular/core'import { AuthService, CanComponentDeactivate, Notifier, ServerService } from '@app/core'import { buildHTTPErrorResponse, genericUploadErrorHandler, getUploadXRetryConfig } from '@app/helpers'import { AlertComponent } from '@app/shared/shared-main/common/alert.component'import { BytesPipe } from '@app/shared/shared-main/common/bytes.pipe'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'import { HttpStatusCode, UserImport, UserImportState } from '@peertube/peertube-models'import { UploadState, UploaderX, UploadxService } from 'ngx-uploadx'@@ -17,7 +18,7 @@ import { UserImportExportService } from './user-import-export.service'templateUrl: './my-account-import.component.html',styleUrls: [ './my-account-import.component.scss' ],standalone: true,- imports: [ NgIf, UploadProgressComponent, NgbTooltip, DatePipe, AlertComponent ]+ imports: [ NgIf, UploadProgressComponent, NgbTooltip, PTDatePipe, AlertComponent ]})export class MyAccountImportComponent implements OnInit, OnDestroy, CanComponentDeactivate {@Input() videoQuotaUsed: numberdiff --git a/client/src/app/+my-library/my-ownership/my-ownership.component.html b/client/src/app/+my-library/my-ownership/my-ownership.component.htmlindex 75902c2699..6969ca99fd 100644--- a/client/src/app/+my-library/my-ownership/my-ownership.component.html+++ b/client/src/app/+my-library/my-ownership/my-ownership.component.html@@ -39,7 +39,7 @@<my-video-cell [video]="videoChangeOwnership.video"></my-video-cell></td>- <td>{{ videoChangeOwnership.createdAt | date: 'short' }}</td>+ <td>{{ videoChangeOwnership.createdAt | ptDate: 'short' }}</td><td><span class="pt-badge"diff --git a/client/src/app/+my-library/my-ownership/my-ownership.component.ts b/client/src/app/+my-library/my-ownership/my-ownership.component.tsindex 3c5beae0a3..de61477bc3 100644--- a/client/src/app/+my-library/my-ownership/my-ownership.component.ts+++ b/client/src/app/+my-library/my-ownership/my-ownership.component.ts@@ -1,16 +1,16 @@-import { DatePipe, NgClass, NgIf } from '@angular/common'+import { NgClass, NgIf } from '@angular/common'import { Component, OnInit, ViewChild } from '@angular/core'import { Notifier, RestPagination, RestTable } from '@app/core'import { Account } from '@app/shared/shared-main/account/account.model'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { VideoOwnershipService } from '@app/shared/shared-main/video/video-ownership.service'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'import { VideoChangeOwnership, VideoChangeOwnershipStatus, VideoChangeOwnershipStatusType } from '@peertube/peertube-models'import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'-import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'-import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'import { ButtonComponent } from '../../shared/shared-main/buttons/button.component'+import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'import { VideoCellComponent } from '../../shared/shared-tables/video-cell.component'import { MyAcceptOwnershipComponent } from './my-accept-ownership/my-accept-ownership.component'@@ -18,7 +18,6 @@ import { MyAcceptOwnershipComponent } from './my-accept-ownership/my-accept-ownetemplateUrl: './my-ownership.component.html',standalone: true,imports: [- GlobalIconComponent,TableModule,SharedModule,NgbTooltip,@@ -28,7 +27,7 @@ import { MyAcceptOwnershipComponent } from './my-accept-ownership/my-accept-owneNgClass,AutoColspanDirective,MyAcceptOwnershipComponent,- DatePipe,+ PTDatePipe,VideoCellComponent]})diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.htmlindex 01bd0a141d..5f21c04636 100644--- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html+++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html@@ -70,8 +70,8 @@</span></td>- <td>{{ videoChannelSync.createdAt | date: 'short' }}</td>- <td>{{ videoChannelSync.lastSyncAt | date: 'short' }}</td>+ <td>{{ videoChannelSync.createdAt | ptDate: 'short' }}</td>+ <td>{{ videoChannelSync.lastSyncAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.tsindex 1724d113f2..db66387abf 100644--- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts+++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts@@ -1,10 +1,11 @@-import { DatePipe, NgClass, NgIf } from '@angular/common'+import { NgClass, NgIf } from '@angular/common'import { Component, OnInit } from '@angular/core'import { RouterLink } from '@angular/router'import { AuthService, Notifier, RestPagination, RestTable, ServerService } from '@app/core'import { VideoChannelSyncService } from '@app/shared/shared-main/channel/video-channel-sync.service'import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'import { AlertComponent } from '@app/shared/shared-main/common/alert.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'import { HTMLServerConfig, VideoChannelSync, VideoChannelSyncState, VideoChannelSyncStateType } from '@peertube/peertube-models'import { SharedModule, SortMeta } from 'primeng/api'@@ -27,7 +28,7 @@ import { ActionDropdownComponent, DropdownAction } from '../../shared/shared-maiActionDropdownComponent,ActorAvatarComponent,NgClass,- DatePipe,+ PTDatePipe,AlertComponent]})diff --git a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html b/client/src/app/+my-library/my-video-imports/my-video-imports.component.htmlindex 82fd1529ce..d7d3485deb 100644--- a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html+++ b/client/src/app/+my-library/my-video-imports/my-video-imports.component.html@@ -55,7 +55,7 @@</span></td>- <td>{{ videoImport.createdAt | date: 'short' }}</td>+ <td>{{ videoImport.createdAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts b/client/src/app/+my-library/my-video-imports/my-video-imports.component.tsindex f70e583a1b..20bfc85e95 100644--- a/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts+++ b/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts@@ -1,28 +1,25 @@-import { SortMeta, SharedModule } from 'primeng/api'+import { NgClass, NgIf } from '@angular/common'import { Component, OnInit } from '@angular/core'import { Notifier, RestPagination, RestTable } from '@app/core'-import { VideoImport, VideoImportState, VideoImportStateType } from '@peertube/peertube-models'-import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'-import { EditButtonComponent } from '../../shared/shared-main/buttons/edit-button.component'-import { DeleteButtonComponent } from '../../shared/shared-main/buttons/delete-button.component'-import { ButtonComponent } from '../../shared/shared-main/buttons/button.component'-import { TableExpanderIconComponent } from '../../shared/shared-tables/table-expander-icon.component'-import { NgIf, NgClass, DatePipe } from '@angular/common'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'+import { VideoImportService } from '@app/shared/shared-main/video/video-import.service'+import { Video } from '@app/shared/shared-main/video/video.model'import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'+import { VideoImport, VideoImportState, VideoImportStateType } from '@peertube/peertube-models'+import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'-import { RouterLink } from '@angular/router'-import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'-import { VideoImportService } from '@app/shared/shared-main/video/video-import.service'-import { Video } from '@app/shared/shared-main/video/video.model'+import { ButtonComponent } from '../../shared/shared-main/buttons/button.component'+import { DeleteButtonComponent } from '../../shared/shared-main/buttons/delete-button.component'+import { EditButtonComponent } from '../../shared/shared-main/buttons/edit-button.component'+import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'+import { TableExpanderIconComponent } from '../../shared/shared-tables/table-expander-icon.component'@Component({templateUrl: './my-video-imports.component.html',styleUrls: [ './my-video-imports.component.scss' ],standalone: true,imports: [- GlobalIconComponent,- RouterLink,AdvancedInputFilterComponent,TableModule,SharedModule,@@ -34,7 +31,7 @@ import { Video } from '@app/shared/shared-main/video/video.model'EditButtonComponent,NgClass,AutoColspanDirective,- DatePipe+ PTDatePipe]})export class MyVideoImportsComponent extends RestTable implements OnInit {diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.htmlindex 639cbc7066..288fb61867 100644--- a/client/src/app/+video-channels/video-channels.component.html+++ b/client/src/app/+video-channels/video-channels.component.html@@ -64,7 +64,7 @@<div class="actor-info"><div><div class="actor-display-name">- <h1 i18n-title [title]="'Channel created on ' + (videoChannel.createdAt | date)">{{ videoChannel.displayName }}</h1>+ <h1 i18n-title [title]="'Channel created on ' + (videoChannel.createdAt | ptDate)">{{ videoChannel.displayName }}</h1></div><div class="actor-handle">diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.tsindex 53020b0e1d..ec875fa916 100644--- a/client/src/app/+video-channels/video-channels.component.ts+++ b/client/src/app/+video-channels/video-channels.component.ts@@ -1,10 +1,11 @@-import { DatePipe, NgClass, NgIf, NgTemplateOutlet } from '@angular/common'+import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common'import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core'import { ActivatedRoute, RouterLink, RouterOutlet } from '@angular/router'import { AuthService, Hotkey, HotkeysService, MarkdownService, MetaService, RestExtractor, ScreenService } from '@app/core'import { Account } from '@app/shared/shared-main/account/account.model'import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { HorizontalMenuComponent, HorizontalMenuEntry } from '@app/shared/shared-main/menu/horizontal-menu.component'import { VideoService } from '@app/shared/shared-main/video/video.service'import { BlocklistService } from '@app/shared/shared-moderation/blocklist.service'@@ -35,7 +36,7 @@ import { AccountBlockBadgesComponent } from '../shared/shared-moderation/accountHorizontalMenuComponent,RouterOutlet,SupportModalComponent,- DatePipe+ PTDatePipe]})export class VideoChannelsComponent implements OnInit, OnDestroy {diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.htmlindex 4c48df2654..c31c2c4eed 100644--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html@@ -212,7 +212,7 @@[href]="videoCaption.captionPath">{{ getCaptionLabel(videoCaption) }}</a>- <div i18n class="caption-entry-state">Already uploaded on {{ videoCaption.updatedAt | date }} ✔</div>+ <div i18n class="caption-entry-state">Already uploaded on {{ videoCaption.updatedAt | ptDate }} ✔</div><my-edit-button i18n-label label="Edit" class="me-2" (click)="openEditCaptionModal(videoCaption)"></my-edit-button><my-delete-button label (click)="deleteCaption(videoCaption)"></my-delete-button>diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.tsindex 035978cd8b..75ba790c7e 100644--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts@@ -1,4 +1,4 @@-import { DatePipe, NgClass, NgFor, NgIf, NgTemplateOutlet } from '@angular/common'+import { NgClass, NgFor, NgIf, NgTemplateOutlet } from '@angular/common'import {ChangeDetectorRef,Component,@@ -12,6 +12,7 @@ import {booleanAttribute} from '@angular/core'import { AbstractControl, FormArray, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms'+import { RouterLink } from '@angular/router'import { ConfirmService, HooksService, PluginService, ServerService } from '@app/core'import { removeElementFromArray } from '@app/helpers'import { BuildFormArgument, BuildFormValidator } from '@app/shared/form-validators/form-validator.model'@@ -33,6 +34,7 @@ import {import { FormReactiveErrors, FormReactiveValidationMessages } from '@app/shared/shared-forms/form-reactive.service'import { FormValidatorService } from '@app/shared/shared-forms/form-validator.service'import { AlertComponent } from '@app/shared/shared-main/common/alert.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { InstanceService } from '@app/shared/shared-main/instance/instance.service'import { VideoCaptionEdit, VideoCaptionWithPathEdit } from '@app/shared/shared-main/video-caption/video-caption-edit.model'import { VideoChaptersEdit } from '@app/shared/shared-main/video/video-chapters-edit.model'@@ -63,7 +65,6 @@ import { DynamicFormFieldComponent } from '../../../shared/shared-forms/dynamic-import { InputTextComponent } from '../../../shared/shared-forms/input-text.component'import { MarkdownTextareaComponent } from '../../../shared/shared-forms/markdown-textarea.component'import { PeertubeCheckboxComponent } from '../../../shared/shared-forms/peertube-checkbox.component'-import { PreviewUploadComponent } from '../../../shared/shared-forms/preview-upload.component'import { SelectChannelComponent } from '../../../shared/shared-forms/select/select-channel.component'import { SelectOptionsComponent } from '../../../shared/shared-forms/select/select-options.component'import { SelectTagsComponent } from '../../../shared/shared-forms/select/select-tags.component'@@ -81,7 +82,6 @@ import { VideoCaptionEditModalContentComponent } from './caption/video-caption-eimport { I18nPrimengCalendarService } from './i18n-primeng-calendar.service'import { ThumbnailManagerComponent } from './thumbnail-manager/thumbnail-manager.component'import { VideoEditType } from './video-edit.type'-import { RouterLink } from '@angular/router'type PluginField = {pluginInfo: PluginInfo@@ -122,10 +122,9 @@ type PluginField = {DeleteButtonComponent,EmbedComponent,LiveDocumentationLinkComponent,- PreviewUploadComponent,NgbNavOutlet,VideoCaptionAddModalComponent,- DatePipe,+ PTDatePipe,ThumbnailManagerComponent,EditButtonComponent,ButtonComponent,diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.htmlindex fc5c92cee1..e34a2ad579 100644--- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html+++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html@@ -1,5 +1,5 @@<my-alert rounded="false" type="primary" i18n *ngIf="hasVideoScheduledPublication()">- This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}.+ This video will be published on {{ video.scheduledUpdate.updateAt | ptDate: 'full' }}.</my-alert><my-alert rounded="false" type="primary" i18n *ngIf="isWaitingForLive()">diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.tsindex b41192fce6..e7ece7dd6e 100644--- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts+++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts@@ -1,7 +1,8 @@-import { DatePipe, NgIf } from '@angular/common'+import { NgIf } from '@angular/common'import { Component, Input } from '@angular/core'import { AuthUser } from '@app/core'import { AlertComponent } from '@app/shared/shared-main/common/alert.component'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { VideoDetails } from '@app/shared/shared-main/video/video-details.model'import { VideoPrivacy, VideoState } from '@peertube/peertube-models'@@ -10,7 +11,7 @@ import { VideoPrivacy, VideoState } from '@peertube/peertube-models'templateUrl: './video-alert.component.html',standalone: true,styles: `my-alert { text-align: center }`,- imports: [ NgIf, DatePipe, AlertComponent ]+ imports: [ NgIf, PTDatePipe, AlertComponent ]})export class VideoAlertComponent {@Input() user: AuthUserdiff --git a/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html b/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.htmlindex 54672c31ad..4934fb3050 100644--- a/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html+++ b/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html@@ -20,12 +20,12 @@<div *ngIf="!!video.inputFileUpdatedAt" class="attribute attribute-re-uploaded-on"><span i18n class="attribute-label">Video re-upload</span>- <span class="attribute-value">{{ video.inputFileUpdatedAt | date: 'short' }}</span>+ <span class="attribute-value">{{ video.inputFileUpdatedAt | ptDate: 'short' }}</span></div><div *ngIf="!!video.originallyPublishedAt" class="attribute attribute-originally-published-at"><span i18n class="attribute-label">Originally published</span>- <span class="attribute-value">{{ video.originallyPublishedAt | date: 'shortDate' }}</span>+ <span class="attribute-value">{{ video.originallyPublishedAt | ptDate: 'shortDate' }}</span></div><div class="attribute attribute-category">diff --git a/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.ts b/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.tsindex 60fafff5a6..21beebbe8c 100644--- a/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.ts+++ b/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.ts@@ -1,7 +1,8 @@-import { DatePipe, NgFor, NgIf } from '@angular/common'+import { NgFor, NgIf } from '@angular/common'import { Component, Input, OnChanges } from '@angular/core'import { RouterLink } from '@angular/router'import { HooksService } from '@app/core'+import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'import { TimeDurationFormatterPipe } from '@app/shared/shared-main/date/time-duration-formatter.pipe'import { VideoDetails } from '@app/shared/shared-main/video/video-details.model'import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'@@ -18,7 +19,7 @@ type PluginMetadata = {templateUrl: './video-attributes.component.html',styleUrls: [ './video-attributes.component.scss' ],standalone: true,- imports: [ NgIf, RouterLink, GlobalIconComponent, NgFor, DatePipe, TimeDurationFormatterPipe ]+ imports: [ NgIf, RouterLink, GlobalIconComponent, NgFor, TimeDurationFormatterPipe, PTDatePipe ]})export class VideoAttributesComponent implements OnChanges {@Input() video: VideoDetailsdiff --git a/client/src/app/shared/shared-abuse-list/abuse-details.component.html b/client/src/app/shared/shared-abuse-list/abuse-details.component.htmlindex a53cbd0272..b456aeed98 100644--- a/client/src/app/shared/shared-abuse-list/abuse-details.component.html+++ b/client/src/app/shared/shared-abuse-list/abuse-details.component.html@@ -44,7 +44,7 @@<div class="d-flex" *ngIf="abuse.updatedAt"><span class="moderation-expanded-label" i18n>Updated</span>- <time class="moderation-expanded-text abuse-details-date-updated">{{ abuse.updatedAt | date: 'medium' }}</time>+ <time class="moderation-expanded-text abuse-details-date-updated">{{ abuse.updatedAt | ptDate: 'medium' }}</time></div><!-- report text -->diff --git a/client/src/app/shared/shared-abuse-list/abuse-details.component.ts b/client/src/app/shared/shared-abuse-list/abuse-details.component.tsindex c346555047..fb3c45a1a6 100644--- a/client/src/app/shared/shared-abuse-list/abuse-details.component.ts+++ b/client/src/app/shared/shared-abuse-list/abuse-details.component.ts@@ -1,19 +1,20 @@+import { NgFor, NgIf } from '@angular/common'import { Component, Input, OnInit } from '@angular/core'+import { RouterLink } from '@angular/router'import { durationToString } from '@app/helpers'import { AbusePredefinedReasonsString } from '@peertube/peertube-models'-import { ProcessedAbuse } from './processed-abuse.model'-import { EmbedComponent } from '../shared-main/video/embed.component'-import { GlobalIconComponent } from '../shared-icons/global-icon.component'import { ActorAvatarComponent } from '../shared-actor-image/actor-avatar.component'-import { RouterLink } from '@angular/router'-import { NgIf, NgFor, DatePipe } from '@angular/common'+import { GlobalIconComponent } from '../shared-icons/global-icon.component'+import { PTDatePipe } from '../shared-main/common/date.pipe'+import { EmbedComponent } from '../shared-main/video/embed.component'+import { ProcessedAbuse } from './processed-abuse.model'@Component({selector: 'my-abuse-details',templateUrl: './abuse-details.component.html',styleUrls: [ '../shared-moderation/moderation.scss', './abuse-details.component.scss' ],standalone: true,- imports: [ NgIf, RouterLink, ActorAvatarComponent, GlobalIconComponent, NgFor, EmbedComponent, DatePipe ]+ imports: [ NgIf, RouterLink, ActorAvatarComponent, GlobalIconComponent, NgFor, EmbedComponent, PTDatePipe ]})export class AbuseDetailsComponent implements OnInit {@Input() abuse: ProcessedAbusediff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.htmlindex 32fdda0234..19fb26a314 100644--- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html+++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html@@ -118,7 +118,7 @@</ng-container>- <td class="c-hand" [pRowToggler]="abuse">{{ abuse.createdAt | date: 'short' }}</td>+ <td class="c-hand" [pRowToggler]="abuse">{{ abuse.createdAt | ptDate: 'short' }}</td><td class="c-hand abuse-states" [pRowToggler]="abuse"><div *ngIf="isAbuseAccepted(abuse)" [title]="abuse.state.label" class="pt-badge badge-success">diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.tsindex a348eabe7a..0151bc4cc7 100644--- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts+++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts@@ -1,33 +1,34 @@-import debug from 'debug'-import { SortMeta, SharedModule } from 'primeng/api'+import { NgClass, NgIf } from '@angular/common'import { Component, Input, OnInit, ViewChild } from '@angular/core'import { ActivatedRoute, Router } from '@angular/router'import { ConfirmService, MarkdownService, Notifier, RestPagination, RestTable } from '@app/core'+import { formatICU } from '@app/helpers'+import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'import { AbuseState, AbuseStateType, AdminAbuse } from '@peertube/peertube-models'import { logger } from '@root-helpers/logger'-import { AbuseMessageModalComponent } from './abuse-message-modal.component'-import { ModerationCommentModalComponent } from './moderation-comment-modal.component'-import { ProcessedAbuse } from './processed-abuse.model'-import { AbuseDetailsComponent } from './abuse-details.component'-import { AutoColspanDirective } from '../shared-main/common/auto-colspan.directive'-import { GlobalIconComponent } from '../shared-icons/global-icon.component'-import { VideoCellComponent } from '../shared-tables/video-cell.component'+import debug from 'debug'+import { SharedModule, SortMeta } from 'primeng/api'+import { TableModule } from 'primeng/table'import { ActorAvatarComponent } from '../shared-actor-image/actor-avatar.component'-import { ActionDropdownComponent, DropdownAction } from '../shared-main/buttons/action-dropdown.component'-import { TableExpanderIconComponent } from '../shared-tables/table-expander-icon.component'-import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'-import { NgIf, NgClass, DatePipe } from '@angular/common'import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../shared-forms/advanced-input-filter.component'-import { TableModule } from 'primeng/table'-import { Video } from '../shared-main/video/video.model'+import { GlobalIconComponent } from '../shared-icons/global-icon.component'+import { Account } from '../shared-main/account/account.model'import { Actor } from '../shared-main/account/actor.model'+import { ActionDropdownComponent, DropdownAction } from '../shared-main/buttons/action-dropdown.component'+import { AutoColspanDirective } from '../shared-main/common/auto-colspan.directive'+import { PTDatePipe } from '../shared-main/common/date.pipe'+import { Video } from '../shared-main/video/video.model'import { VideoService } from '../shared-main/video/video.service'-import { Account } from '../shared-main/account/account.model'import { AbuseService } from '../shared-moderation/abuse.service'import { BlocklistService } from '../shared-moderation/blocklist.service'import { VideoBlockService } from '../shared-moderation/video-block.service'+import { TableExpanderIconComponent } from '../shared-tables/table-expander-icon.component'+import { VideoCellComponent } from '../shared-tables/video-cell.component'import { VideoCommentService } from '../shared-video-comment/video-comment.service'-import { formatICU } from '@app/helpers'+import { AbuseDetailsComponent } from './abuse-details.component'+import { AbuseMessageModalComponent } from './abuse-message-modal.component'+import { ModerationCommentModalComponent } from './moderation-comment-modal.component'+import { ProcessedAbuse } from './processed-abuse.model'const debugLogger = debug('peertube:moderation:AbuseListTableComponent')@@ -52,7 +53,7 @@ const debugLogger = debug('peertube:moderation:AbuseListTableComponent')AbuseDetailsComponent,ModerationCommentModalComponent,AbuseMessageModalComponent,- DatePipe+ PTDatePipe]})export class AbuseListTableComponent extends RestTable implements OnInit {diff --git a/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.html b/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.htmlindex ce973efd9f..224db1ed9f 100644--- a/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.html+++ b/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.html@@ -21,7 +21,7 @@<div class="bubble"><div class="content" [innerHTML]="message.messageHtml"></div>- <div class="date">{{ message.createdAt | date }}</div>+ <div class="date">{{ message.createdAt | ptDate }}</div></div></div></div>diff --git a/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts b/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.tsindex 05a58c89f2..03bd26df04 100644--- a/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts+++ b/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts@@ -1,15 +1,16 @@+import { NgClass, NgFor, NgIf } from '@angular/common'import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'+import { FormsModule, ReactiveFormsModule } from '@angular/forms'import { AuthService, HtmlRendererService, Notifier } from '@app/core'import { FormReactive } from '@app/shared/shared-forms/form-reactive'import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'import { NgbModal } from '@ng-bootstrap/ng-bootstrap'import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref'-import { logger } from '@root-helpers/logger'import { AbuseMessage, UserAbuse } from '@peertube/peertube-models'+import { logger } from '@root-helpers/logger'import { ABUSE_MESSAGE_VALIDATOR } from '../form-validators/abuse-validators'-import { FormsModule, ReactiveFormsModule } from '@angular/forms'import { GlobalIconComponent } from '../shared-icons/global-icon.component'-import { NgIf, NgFor, NgClass, DatePipe } from '@angular/common'+import { PTDatePipe } from '../shared-main/common/date.pipe'import { AbuseService } from '../shared-moderation/abuse.service'@Component({@@ -17,7 +18,7 @@ import { AbuseService } from '../shared-moderation/abuse.service'templateUrl: './abuse-message-modal.component.html',styleUrls: [ './abuse-message-modal.component.scss' ],standalone: true,- imports: [ NgIf, GlobalIconComponent, NgFor, NgClass, FormsModule, ReactiveFormsModule, DatePipe ]+ imports: [ NgIf, GlobalIconComponent, NgFor, NgClass, FormsModule, ReactiveFormsModule, PTDatePipe ]})export class AbuseMessageModalComponent extends FormReactive implements OnInit {@ViewChild('modal', { static: true }) modal: NgbModaldiff --git a/client/src/app/shared/shared-main/common/date.pipe.ts b/client/src/app/shared/shared-main/common/date.pipe.tsnew file mode 100644index 0000000000..da89d59f7d--- /dev/null+++ b/client/src/app/shared/shared-main/common/date.pipe.ts@@ -0,0 +1,31 @@+import { DatePipe } from '@angular/common'+import { Inject, LOCALE_ID, Pipe, PipeTransform } from '@angular/core'++// Re-implementation of the angular date pipe that use the web browser locale to display dates++@Pipe({+ name: 'ptDate',+ standalone: true,+ pure: true+})+export class PTDatePipe implements PipeTransform {+ private angularPipe: DatePipe+ private customLocaleId: string++ constructor (@Inject(LOCALE_ID) localeId: string) {+ if (navigator.language.includes('-') && navigator.language.split('-')[0] === localeId.split('-')[0]) {+ this.customLocaleId = navigator.language+ } else {+ this.customLocaleId = localeId+ }++ this.angularPipe = new DatePipe(localeId)+ }++ transform (value: Date | string | number | null | undefined, format?: string): string {+ if (format === 'short') return new Date(value).toLocaleString(this.customLocaleId)+ if (format === 'shortDate') return new Date(value).toLocaleDateString(this.customLocaleId)++ return this.angularPipe.transform(value, format)+ }+}diff --git a/client/src/app/shared/shared-moderation/account-blocklist.component.html b/client/src/app/shared/shared-moderation/account-blocklist.component.htmlindex 33ac003b2b..6739607deb 100644--- a/client/src/app/shared/shared-moderation/account-blocklist.component.html+++ b/client/src/app/shared/shared-moderation/account-blocklist.component.html@@ -37,7 +37,7 @@</a></td>- <td>{{ accountBlock.createdAt | date: 'short' }}</td>+ <td>{{ accountBlock.createdAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/shared/shared-moderation/server-blocklist.component.html b/client/src/app/shared/shared-moderation/server-blocklist.component.htmlindex c8ab868c88..5f92bff042 100644--- a/client/src/app/shared/shared-moderation/server-blocklist.component.html+++ b/client/src/app/shared/shared-moderation/server-blocklist.component.html@@ -39,7 +39,7 @@<my-global-icon iconName="external-link"></my-global-icon></a></td>- <td>{{ serverBlock.createdAt | date: 'short' }}</td>+ <td>{{ serverBlock.createdAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html b/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.htmlindex e28c85887d..5cb016d849 100644--- a/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html+++ b/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html@@ -96,7 +96,7 @@}</td>- <td class="c-hand" [pRowToggler]="videoComment">{{ videoComment.createdAt | date: 'short' }}</td>+ <td class="c-hand" [pRowToggler]="videoComment">{{ videoComment.createdAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.ts b/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.tsindex 8dff7ea9f2..70133962b2 100644--- a/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.ts+++ b/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.ts@@ -1,4 +1,4 @@-import { DatePipe, NgClass, NgIf } from '@angular/common'+import { NgClass, NgIf } from '@angular/common'import { Component, Input, OnInit } from '@angular/core'import { ActivatedRoute, Router, RouterLink } from '@angular/router'import { AuthService, ConfirmService, MarkdownService, Notifier, RestPagination, RestTable } from '@app/core'@@ -12,11 +12,10 @@ import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'import { ActorAvatarComponent } from '../shared-actor-image/actor-avatar.component'import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../shared-forms/advanced-input-filter.component'-import { GlobalIconComponent } from '../shared-icons/global-icon.component'-import { AutoColspanDirective } from '../shared-main/common/auto-colspan.directive'import { ActionDropdownComponent, DropdownAction } from '../shared-main/buttons/action-dropdown.component'import { ButtonComponent } from '../shared-main/buttons/button.component'-import { FeedComponent } from '../shared-main/feeds/feed.component'+import { AutoColspanDirective } from '../shared-main/common/auto-colspan.directive'+import { PTDatePipe } from '../shared-main/common/date.pipe'import { TableExpanderIconComponent } from '../shared-tables/table-expander-icon.component'@Component({@@ -25,8 +24,6 @@ import { TableExpanderIconComponent } from '../shared-tables/table-expander-iconstyleUrls: [ '../shared-moderation/moderation.scss', './video-comment-list-admin-owner.component.scss' ],standalone: true,imports: [- GlobalIconComponent,- FeedComponent,TableModule,SharedModule,NgIf,@@ -38,7 +35,7 @@ import { TableExpanderIconComponent } from '../shared-tables/table-expander-iconNgClass,ActorAvatarComponent,AutoColspanDirective,- DatePipe,+ PTDatePipe,RouterLink]})diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.html b/client/src/app/shared/shared-video-live/live-stream-information.component.htmlindex 7be81e8d0b..ece5d58b69 100644--- a/client/src/app/shared/shared-video-live/live-stream-information.component.html+++ b/client/src/app/shared/shared-video-live/live-stream-information.component.html@@ -41,8 +41,8 @@<span i18n class="pt-badge badge-success" *ngIf="!getErrorLabel(session)">Success</span><span class="pt-badge badge-danger" *ngIf="getErrorLabel(session)">{{ getErrorLabel(session) }}</span>- <span i18n>Started on {{ session.startDate | date:'medium' }}</span>- <span i18n *ngIf="session.endDate">Ended on {{ session.endDate | date:'medium' }}</span>+ <span i18n>Started on {{ session.startDate | ptDate:'medium' }}</span>+ <span i18n *ngIf="session.endDate">Ended on {{ session.endDate | ptDate:'medium' }}</span><a i18n *ngIf="session.replayVideo" [routerLink]="getVideoUrl(session.replayVideo)" target="_blank">Go to replay</a><span i18n *ngIf="isReplayBeingProcessed(session)">Replay is being processed...</span></div>diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.ts b/client/src/app/shared/shared-video-live/live-stream-information.component.tsindex 77cdd6ba4c..baf390f4cf 100644--- a/client/src/app/shared/shared-video-live/live-stream-information.component.ts+++ b/client/src/app/shared/shared-video-live/live-stream-information.component.ts@@ -1,4 +1,4 @@-import { DatePipe, NgFor, NgIf } from '@angular/common'+import { NgFor, NgIf } from '@angular/common'import { Component, ElementRef, ViewChild } from '@angular/core'import { RouterLink } from '@angular/router'import { Video } from '@app/shared/shared-main/video/video.model'@@ -8,6 +8,7 @@ import { InputTextComponent } from '../shared-forms/input-text.component'import { GlobalIconComponent } from '../shared-icons/global-icon.component'import { EditButtonComponent } from '../shared-main/buttons/edit-button.component'import { AlertComponent } from '../shared-main/common/alert.component'+import { PTDatePipe } from '../shared-main/common/date.pipe'import { LiveDocumentationLinkComponent } from './live-documentation-link.component'import { LiveVideoService } from './live-video.service'@@ -24,7 +25,7 @@ import { LiveVideoService } from './live-video.service'NgFor,RouterLink,EditButtonComponent,- DatePipe,+ PTDatePipe,AlertComponent],providers: [ LiveVideoService ]diff --git a/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html b/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.htmlindex 46088d3db5..c84ba094a5 100644--- a/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html+++ b/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html@@ -56,7 +56,7 @@{{ list.words.length }} words</td>- <td>{{ list.updatedAt | date: 'short' }}</td>+ <td>{{ list.updatedAt | ptDate: 'short' }}</td></tr></ng-template>diff --git a/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.ts b/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.tsindex 41808415bc..50869806cc 100644--- a/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.ts+++ b/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.ts@@ -1,4 +1,4 @@-import { DatePipe, NgClass, NgIf } from '@angular/common'+import { NgClass, NgIf } from '@angular/common'import { Component, Input, OnInit, ViewChild } from '@angular/core'import { ActivatedRoute, Router } from '@angular/router'import { AuthService, ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'@@ -8,9 +8,10 @@ import { SharedModule, SortMeta } from 'primeng/api'import { TableModule } from 'primeng/table'import { first } from 'rxjs'import { GlobalIconComponent } from '../shared-icons/global-icon.component'-import { AutoColspanDirective } from '../shared-main/common/auto-colspan.directive'import { ActionDropdownComponent, DropdownAction } from '../shared-main/buttons/action-dropdown.component'import { ButtonComponent } from '../shared-main/buttons/button.component'+import { AutoColspanDirective } from '../shared-main/common/auto-colspan.directive'+import { PTDatePipe } from '../shared-main/common/date.pipe'import { TableExpanderIconComponent } from '../shared-tables/table-expander-icon.component'import { WatchedWordsListSaveModalComponent } from './watched-words-list-save-modal.component'import { WatchedWordsListService } from './watched-words-list.service'@@ -29,7 +30,7 @@ import { WatchedWordsListService } from './watched-words-list.service'TableExpanderIconComponent,NgClass,AutoColspanDirective,- DatePipe,+ PTDatePipe,NgbTooltip,WatchedWordsListSaveModalComponent]