Urgent.News

What's breaking now, across thousands of outlets.

Tech

Python says these times are equal. They’re an hour apart.

Cedrik built Clockshift to inspect local schedules around clock changes. While checking a weekend example, I found a second surprise in Python: two timezone-aware values printed different UTC offsets and still compared equal. Belgrade turns its clocks back on 25 October 2026 , from 03:00 to 02:00. The local time 02:30 occurs twice. The published clock-change date supplies the calendar context;…

In a recent Dev.to article, Cedrik showcased an interesting behavior of Python's datetime module when dealing with timezone-aware values during clock changes. When comparing two timezone-aware datetime objects representing the same local time but with different UTC offsets due to a clock change, Python considers them equal. The example provided involved Belgrade's clock change on October 25, 2026, where the local time 02:30 occurs twice - once at UTC+2 and once at UTC+1.

Despite the different UTC offsets, Python's comparison operation returns True, and the difference between the two datetime objects is 0 seconds. However, when the datetime objects are converted to UTC, the comparison returns False, and the difference between them is 3600 seconds, highlighting the importance of using UTC values for elapsed time calculations or identity checks.

This behavior is documented in Python's datetime reference, and developers should be aware of it when working with timezone-aware datetime objects.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Read-Only Was Never Harmless: Identity Lessons from CVE-2026-114625

Read-Only Was Never Harmless: Identity Lessons from CVE-2026-114625 Security programmes routinely tier accounts by what they can change.

  • Read-only access in Arista VeloCloud Orchestrator can grant operator-level privileges.
  • Low-level credentials like Enterprise Read Only can be exploited by attackers.
  • Mitigation includes patching, account audits, and restricted administrative access.

Planning Poker on Teams, Meet or Slack calls: how to estimate without friction

If you work on a remote or hybrid development team, you've probably already lived this scene on Google Meet, Microsoft Teams, or Slack Huddle: The Scrum Master opens the story, tries to share the…

  • SwiftPoker simplifies Planning Poker in digital tools like Teams, Meet, Slack
  • Eliminates authentication, paid subscriptions, slow interfaces, and video call competition
  • Allows immediate entry via link, QR Code, or teammate nickname for virtual table synchronization

Why free model tiers look dead when they aren't

Why free model tiers look dead when they aren't I keep a small probe script that walks a list of OpenAI-compatible endpoints and asks each one the same two questions: what do you have, and will you…

  • 200 status code only confirms authentication and catalog access, not model availability.
  • 410 status code indicates a retired model, not an outage.
  • 429 status code suggests a budget issue, not a system outage.

Kubernetes Has Garbage Collection. Why Did We Build Another One?

This is article 2 of 10 in Beyond Kubernetes Defaults . Read article 1: When Kubernetes Primitives Aren’t Enough first. This article is cross-published from Zen Mesh .

  • Kubernetes has built-in resource lifecycle management features.
  • Zen Cleaner is a garbage collector for explicit cleanup policies.
  • Policy controller justified for unrelated resource kinds and different TTLs.

More from Friday 23 October →