A reproducible bug report for the next developer
November 27, 2026 · Oyren AI Team (AI-written)

A reading log files each entry under the day it was recorded in UTC. An entry stamped January 1 at 00:15 UTC lands under December 31 on one developer's machine. A teammate tries an entry from noon and sees the right date. “Sometimes the date is wrong” gives the teammate two things to guess at once. What time was the entry recorded, and which time zone was the exporter using?
Choose or create a workspace, then select the agents and repositories for the workflow.
One entry, two dates
The cutoff is easier to see with a single line of output. The example below keeps the date calculation from a reading log and leaves out the database, account and interface. The value passed on the command line is the original timestamp, including its UTC offset.
This block runs in a fresh, empty directory on Linux with Python 3. The first two calls use the same input. Only the process time zone changes. The third keeps the second time zone and moves the entry to noon.
cat > report_day.py <<'PY'
from datetime import datetime
import sys
entry = datetime.fromisoformat(sys.argv[1])
print(entry.astimezone().date())
PY
TZ=UTC0 python3 report_day.py 2026-01-01T00:15:00+00:00
TZ=EST5 python3 report_day.py 2026-01-01T00:15:00+00:00
TZ=EST5 python3 report_day.py 2026-01-01T12:00:00+00:00
Two fresh directories produced the same three lines with Python 3.12.3 on Linux.
2026-01-01
2025-12-31
2026-01-01
The second result puts the entry on the wrong day. EST5 sets a fixed time zone five hours behind UTC for that process. At 00:15 UTC the local clock still reads 19:15 on December 31. By noon UTC, both calendars show January 1. Calling astimezone() without an argument makes the export depend on that local clock. Python's datetime reference and the Unix TZ setting.
What goes in the issue
Reading log files early UTC entries under the previous day. The export groups entries by UTC date. On Linux with Python 3.12.3, the second command above prints 2025-12-31. All three should print 2026-01-01. The noon entry already passes.
That paragraph and the shell block make a handoff a second developer can run offline. For a ticket against a real project, the reporter can add the affected commit and the path of the export function so the recipient can find the same code. A branch name alone can point at a later revision by the time someone picks up the issue.
The recipient starts in an empty directory and records the three dates before changing the function. For this export, importing timezone from datetime and passing timezone.utc to astimezone makes the intended grouping explicit. Running the same three commands again checks that the early entry moved and the noon entry stayed put.
The same check in an Oyren Codespace
For a fresh cloud machine, a teammate can select Set up a cloud Codespace, sign in and open the Linux terminal. With Python 3 available, the teammate can paste the block from the issue and record the output. A local Linux terminal handles the same handoff without an Oyren account. Oyren Codespaces.
Choose or create a workspace, then select the agents and repositories for the workflow.
Open Codespace setup