Skip to content

DatePipe date issue 0001-01-01T00:00:00Z#29874

Description

@tmjac2

馃悶 bug report

Affected Package

DatePipe

Is this a regression?

Description

When passing 0001-01-01T00:00:00Z into DatePipe it is being formatted as "12/31/0001 BC"

{{ledgerEntry.date | date: 'MM/dd/yyyy GGG':'UTC'}}

馃敩 Minimal Reproduction

https://stackblitz.com/edit/angular-sz4zdy?embed=1&file=src/app/app.component.html

馃敟 Exception or Error

馃實 Your Environment

Windows 10

Angular Version:


@angular-devkit/architect         0.13.6
@angular-devkit/build-angular     0.13.6
@angular-devkit/build-optimizer   0.13.6
@angular-devkit/build-webpack     0.13.6
@angular-devkit/core              7.3.6
@angular-devkit/schematics        0.8.4
@angular/cdk                      6.4.7
@angular/cli                      6.2.4
@angular/flex-layout              6.0.0-beta.15
@angular/material                 6.4.7
@ngtools/webpack                  7.3.6
@schematics/angular               0.8.4
@schematics/update                0.8.4
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.29.0

Anything else relevant?

Tested in FireFox and Chrome

Nope

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: commonIssues related to APIs in the @angular/common packagearea: i18nIssues related to localization and internationalizationfreq1: lowstate: confirmedtype: bug/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions