Time: 0:00
Test a custom input to verify an edge case (e.g. empty lists, negative numbers, duplicates).
This bug belongs to the mutation and copying bugs pattern
Assignment does not copy, a shallow copy still shares its contents, and mutating methods return None.
What went wrong: Go does not use format specifiers like YYYY-MM-DD. Instead, time.Format uses a specific reference date: Jan 2 15:04:05 2006 MST (1 2 3 4 5 6).
The fix: Use the Go reference format string "2006-01-02".
Remember: Go's time layout string is always based on the reference time: 2006 for year, 01 for month, 02 for day.
The pattern behind it: mutation and copying bugs.
Paste this into any web page or blog post. Visitors fix the bug right there, in their browser.
<iframe src="https://trybughunt.com/embed/aba39d42-3284-4082-997a-721e6192a696" title="Debugging challenge: Time format layout error using standard date" width="100%" height="580" loading="lazy" style="border:1px solid #d4d4d8;border-radius:12px;max-width:760px"></iframe>
<p style="font-size:14px">Debugging challenge from <a href="https://trybughunt.com/challenges/aba39d42-3284-4082-997a-721e6192a696">TryBugHunt</a></p>