• 
      

    The repositoryCommitModel tests now check UTC fields

    Review Request #6928 — Created Feb. 10, 2015 and submitted

    Information

    Review Board
    release-2.0.x

    Reviewers

    The tests in the repositoryCommitModel tests were parsing a UTC date
    and expecting the the resulting year and date in the local timezone to
    be the same as the year and date in UTC. As a result, this test fails in
    certain timezones.

    The test has been changed to check the UTC fields instead of the local
    fields.

    Changed my timezone to UTC+8 and ran the JS tests. The test failed
    prior to applying this patch.

    reviewbot
    1. Tool: PEP8 Style Checker
      Ignored Files:
          reviewboard/static/rb/js/resources/models/tests/repositoryCommitModelTests.js
      
      
      
      Tool: Pyflakes
      Ignored Files:
          reviewboard/static/rb/js/resources/models/tests/repositoryCommitModelTests.js
      
      
    2. 
        
    WU
    1. Ship It!
    2. 
        
    brennie
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.0.x (2c3604f)