We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://stackblitz.com/edit/ng-zorro-antd-start-ewrzkm
fdescribe('ParseTime', () => { beforeEach(() => { injector = TestBed.configureTestingModule({ imports: [NzI18nModule] }); dateHelper = injector.get(DateHelperService); }); it('should parse custom time', () => { expect(dateHelper.parseTime('14:00')?.toTimeString().substr(0, 8)).toBe('14:00:00'); -- passes expect(dateHelper.parseTime('4:00')?.toTimeString().substr(0, 8)).toBe('04:00:00'); -- fails }); });
dateHelper.parseTime('4:00') to return 04:00
dateHelper.parseTime('4:00') returns 00:00
This affects the functionality of time picker. If you enter '4:00' without leading zero manually, it will reset to '00:00' on blur.
Please see the tests here: altso@50cd9d9
The text was updated successfully, but these errors were encountered:
fix(module:time-picker): allow inputting string type (#4949)
3b45a22
* fix(module:time-picker): allow inputting string type Fixes #4775, Fixes #4777, Fixed #4871, close #1679
fix(module:time-picker): allow inputting string type (NG-ZORRO#4949)
c584697
* fix(module:time-picker): allow inputting string type Fixes NG-ZORRO#4775, Fixes NG-ZORRO#4777, Fixed NG-ZORRO#4871, close NG-ZORRO#1679
b212f6e
Successfully merging a pull request may close this issue.
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-ewrzkm
Steps to reproduce
What is expected?
dateHelper.parseTime('4:00') to return 04:00
What is actually happening?
dateHelper.parseTime('4:00') returns 00:00
This affects the functionality of time picker. If you enter '4:00' without leading zero manually, it will reset to '00:00' on blur.
Please see the tests here: altso@50cd9d9
The text was updated successfully, but these errors were encountered: