fix(datetime): do not reset to am when changing the hour and pm is set (#22016)

fixes #19175 fixes #19260 fixes #20026 references #16630
This commit is contained in:
Brandy Carney
2020-09-11 13:05:26 -04:00
committed by GitHub
parent b396e54d4f
commit 1dac5a46f5
4 changed files with 54 additions and 7 deletions

View File

@ -220,6 +220,7 @@ describe('datetime-util', () => {
"second": undefined,
"tzOffset": 0,
"year": 1000,
"ampm": "am"
});
});
@ -234,6 +235,7 @@ describe('datetime-util', () => {
"second": undefined,
"tzOffset": 0,
"year": undefined,
"ampm": "pm"
});
});
@ -248,6 +250,7 @@ describe('datetime-util', () => {
"second": 20,
"tzOffset": 0,
"year": 1994,
"ampm": "pm"
});
});
@ -262,6 +265,7 @@ describe('datetime-util', () => {
"second": undefined,
"tzOffset": 0,
"year": 2018,
"ampm": "am"
});
});