Urgent.News

What's breaking now, across thousands of outlets.

Tech

Europe changed clocks on Sunday, the US does it next Sunday. Check your scheduled posts

Every year I tell myself I'll remember this before it happens. Every year somebody pings me on a Monday asking why the 9am posts went out at 8. Europe moved clocks back on October 25. The US does it on November 1. So for one week the gap between, say, Madrid and New York is 5 hours instead of the usual 6, and anything that quietly assumed a fixed offset is now wrong by an hour. If you run…

On October 25, Europe adjusts its clocks back, while the United States sets its clocks forward on November 1. For a week, the time difference between locations like Madrid and New York reduces by one hour, causing issues for scheduled tasks, social media posts, newsletters, and cron jobs. This disruption can occur due to a few reasons: storing time in offsets instead of IANA zone names, using server cron jobs in UTC when humans think in local time, treating the hour that occurs twice during the fall-back period without proper handling, and failing to display the audience's timezone alongside the scheduled time.

To avoid these problems, it is recommended to store IANA zone names, use server cron jobs with zone specifications, make jobs idempotent, handle the double or missing hour deliberately, and always display the recipient's timezone. Regularly auditing scheduled items and scheduling tests to freeze time around the clock change dates can also help prevent these issues.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How indie makers in China actually get paid by overseas customers (with the real fee math)

If you build from China and sell to overseas customers, the product is the easy part. The hard part is the money plumbing: which channel actually lands money in a Chinese bank account, and how much of…

  • PayPal charges $35 withdrawal fee, deeper into smaller amounts
  • Digital product sales on Gumroad/Payhip incur 30% marketplace fee
  • Marketplaces like Etsy handle payouts but sacrifice control/margin

Django Explained: Python's Batteries-Included Framework

Introduction Django is Python's most popular web framework, and its philosophy is the opposite of minimal: "batteries included".

  • Django is Python's most popular web framework with "batteries included" philosophy
  • ORM, admin panel, authentication, forms, and security are built-in features
  • Django automatically generates database schema, forms, and admin interface from models

Today I'm coding

The weeds are pulled, the dirt is off my boots, and today I'm back in front of the keyboard. By the way - my garden totally looks like a battleground from a WW2 movie!

  • Author returns to coding after garden reflects WWII battlefield
  • Author refactors project like scorched-earth approach
  • Author commits to coding relentlessly, new endeavors planned

More from Tuesday 27 October →