<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bug Log on Mike Mwita</title><link>https://mikemwita.com/buglog/</link><description>Recent content in Bug Log on Mike Mwita</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://mikemwita.com/buglog/index.xml" rel="self" type="application/rss+xml"/><item><title>Bug #1 — The Clock That Kept Slipping</title><link>https://mikemwita.com/buglog/the-clock-that-kept-slipping/</link><pubDate>Sun, 02 Aug 2026 09:00:00 +0300</pubDate><guid>https://mikemwita.com/buglog/the-clock-that-kept-slipping/</guid><description>&lt;p>&lt;span class="dropcap">I&lt;/span>
 was integrating an external API. The datetime it stamped on every response never agreed with my local clock — and not by a clean, constant amount. Sometimes it was 4 minutes behind. Later, 8. Then more. The gap kept drifting.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl"> our clock their timestamp gap
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ─────────────────────────────────────────────
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> 10:14 10:10 −4 min
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> 11:02 10:54 −8 min
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> 13:40 13:29 −11 min
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ↑
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> not a constant — it grows
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="the-wrong-theory">
The Wrong Theory
&lt;a href="#the-wrong-theory" class="heading-anchor">#&lt;/a>
&lt;/h2>
&lt;p>My first instinct was that we were sending the wrong value, so I checked the payload. The date was correct. That check cost me time: a timezone shift usually leaves the date component intact and only moves the clock, so a date-only comparison passes while the instant is wrong. The date only flips when the shift crosses midnight — which is why &amp;ldquo;the date is right&amp;rdquo; &lt;em>feels&lt;/em> like evidence and isn&amp;rsquo;t.&lt;/p></description></item></channel></rss>