• ghybs's avatar
    fix(timepicker): preserve date part when time crosses midnight (#5535) · 5846bf29
    ghybs authored
    
    
    * test(timepicker): fix typings
    
    * test(timepicker): add hours cross midnight
    
    2 new test cases to ensure that day part is preserved when hours are
    in/decremented, making the time cross midnight (feature already
    implemented).
    
    * test(timepicker): minutes, seconds cross midnight
    
    add 4 new test cases to ensure that day part is preserved when minutes or
    seconds are in/decremented, making the time cross midnight.
    Actually fail as is for TDD purpose.
    To be solved on next commit.
    
    * test(timepicker): fix style
    
    to comply with lint-src script.
    
    * fix(timepicker): preserve date across midnight
    
    whether using hours, minutes or seconds to cross midnight, up or down.
    Resolve failing tests from previous commit.
    
    Fix #3139
    Co-authored-by: default avatarDmitriy Danilov <daniloff200@gmail.com>
    Co-authored-by: default avatardmitry-zhemchugov <44227371+dmitry-zhemchugov@users.noreply.github.com>
    5846bf29
timepicker.utils.ts 4.15 KB