<p>This PR fixes the two issues described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="908179520" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3210" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3210/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/3210">#3210</a> which, although technically different, can be taken together.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/3216'>https://github.com/openstreetmap/openstreetmap-website/pull/3216</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Ensure that short duration blockss are shown as '0 hours'</li>
<li>Fix case when user block durations are slightly negative</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3216/files#diff-4a98c66cfd9aac927556a0afaba70f5a1ecfdf8d1bcc845584a08c9858e8a48f">app/helpers/user_blocks_helper.rb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3216/files#diff-7b1664ebd556062821a678e3622cf5c89c4ba8c7f83253627ad267ac30b121c4">test/helpers/user_blocks_helper_test.rb</a>
(20)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3216.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3216.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3216.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3216.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3216">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOINSONWI235IPGFODTR5Z7RANCNFSM46MESP6Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLN7JAN7M5Q636ODZPTTR5Z7RA5CNFSM46MESP62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NU5BNQA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3216",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3216",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>