Replace DATE_PIPE_DEFAULT_TIMEZONE with DATE_PIPE_DEFAULT_OPTIONS
ProprietaryRewrites {provide: DATE_PIPE_DEFAULT_TIMEZONE, useValue: tz} providers of @angular/common to {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: tz}}, the replacement for the token that Angular 15 deprecated. Providers with useFactory, useExisting or other keys are left unchanged. So is every provider in a project that also refers to DATE_PIPE_DEFAULT_OPTIONS, where a second provider of that token would replace the first, or that injects DATE_PIPE_DEFAULT_TIMEZONE, which would then have no provider.
org. openrewrite. angular. migration. replace-date-pipe-default-timezonemod run . --recipe= org. openrewrite. angular. migration. replace-date-pipe-default-timezoneInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.