)]}'
{
  "commit": "2cc6ffc61bb2d33190d836d2b95bf51b901f079c",
  "tree": "bdfb3081855ef379f52d4a7eb37d0b1658c1b236",
  "parents": [
    "1373d88927ca6708e1fd37e0b5bbf10cbca91765"
  ],
  "author": {
    "name": "Jonas Bergler",
    "email": "jonas@bergler.name",
    "time": "Thu Jan 21 11:47:55 2021 -0800"
  },
  "committer": {
    "name": "Jonas Bergler",
    "email": "jonas@bergler.name",
    "time": "Thu Jan 21 12:26:24 2021 -0800"
  },
  "message": "Fix calculation of durations in UI\n\nThe logic in this method was using round resulting in some\ndurations rendering incorrectly - specifically \u003e 30 secs, \u003e30 mins,\n\u003e12 hours, etc\n\nThe behavior I saw prior to this change is as follows:\n\n\u003e start \u003d new Date(\"2021-01-21 18:14:25.000000000\")\n: Date Thu Jan 21 2021 18:14:25 GMT+1300 (New Zealand Daylight Time)\n\n\u003e end \u003d new Date(\"2021-01-21 18:44:35.000000000\")\n: Date Thu Jan 21 2021 18:44:35 GMT+1300 (New Zealand Daylight Time)\n\n\u003e generateDurationString(start, end)\n: \"1 hour 30 min\"\n\nAfter the change it is as follows:\n\n\u003e start \u003d new Date(\"2021-01-21 18:14:25.000000000\")\n: Date Thu Jan 21 2021 18:14:25 GMT+1300 (New Zealand Daylight Time)\n\n\u003e end \u003d new Date(\"2021-01-21 18:44:35.000000000\")\n: Date Thu Jan 21 2021 18:44:35 GMT+1300 (New Zealand Daylight Time)\n\n\u003e generateDurationString(start, end)\n: \"30 min 10 sec\"\n\nChange also adds additional test coverage for these cases.\n\nChange-Id: Ie6d1d5b66a67b478000db49dc19525592f156120\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "494a33079908114d8be6cb158e0165383f8f5734",
      "old_mode": 33188,
      "old_path": "gr-checks/gr-checks-item.js",
      "new_id": "40c4d7733bd471c43396e3a4f1a5dedb0a4c3985",
      "new_mode": 33188,
      "new_path": "gr-checks/gr-checks-item.js"
    },
    {
      "type": "modify",
      "old_id": "e9ce40128fce1b531c8e036bf9e81727c29a7a12",
      "old_mode": 33188,
      "old_path": "gr-checks/gr-checks-item_test.html",
      "new_id": "305d96501e1927c4550d39a2fe8c723b4ce85ee4",
      "new_mode": 33188,
      "new_path": "gr-checks/gr-checks-item_test.html"
    }
  ]
}
