Skip to content

feat(common/datePipe):fix date formatter correct pattern сloses #7008#8154

Merged
mhevery merged 1 commit intoangular:masterfrom
laskoviymishka:feature/date-formatter
May 26, 2016
Merged

feat(common/datePipe):fix date formatter correct pattern сloses #7008#8154
mhevery merged 1 commit intoangular:masterfrom
laskoviymishka:feature/date-formatter

Conversation

@laskoviymishka
Copy link
Copy Markdown
Contributor

@laskoviymishka laskoviymishka commented Apr 20, 2016

@laskoviymishka
Copy link
Copy Markdown
Contributor Author

upgrade to rc1 version, could anyone please review it? 😅
Any feedback may by @mhevery?

@mhevery mhevery self-assigned this May 20, 2016
@mhevery
Copy link
Copy Markdown
Contributor

mhevery commented May 20, 2016

@laskoviymishka We need tests with all of the changes. Could you please add them.

@laskoviymishka
Copy link
Copy Markdown
Contributor Author

laskoviymishka commented May 20, 2016

Oops, my bad I accidentally killed added tests with a merge 😓 shame on me. I committed them back

@mhevery thx for response! All needed tests already here, i could only add couple more for some complex scenarios. In a fact this change only reimplement internal logic that hided inside of date pipe. Old behaivior was already well tested, so i only add couple more test scenarios to check does new behaivior work also.

To check out in a live this new date pipe logic you could also look at plnkr (http://plnkr.co/edit/BVfVx27Ko76PQPOu8Xl7?p=preview) that was added in PR message. It create new dates pipe which could be compared to old one.

…loses angular#7008

- add regular expression to parse date parts
- add date part creator function
- replace tokens in pattern to parsed parts
@laskoviymishka laskoviymishka force-pushed the feature/date-formatter branch from d2cc2a8 to 3229c01 Compare May 24, 2016 15:47
@laskoviymishka
Copy link
Copy Markdown
Contributor Author

laskoviymishka commented May 24, 2016

@mhevery could you please review, squash into single commit and bring back missed tests 🐱

UPD: looks like CI test fail not becouse of me (the same e2e test fails in master branch)

@mhevery mhevery merged commit 324f014 into angular:master May 26, 2016
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date pipe is not working well with custom format

3 participants