Skip to content
Articles
Article

The hour that doesn't exist: a DST-safe booking grid in Dart

by Stephen Color dev.to

8 min read

A booking screen looks simple: a day, a list of times, a button. Mine worked in the demo for a week. Then I put a real calendar under it — opening hours with a lunch break, a 15-minute turnaround between treatments, two guests tapping the same 19:00 — and the demo turned out to be the only place it worked. Flutter gives you DateTime, and DateTime has a time zone. What it does not tell you is that…

Forum

Questions about this, or something to add?

Discuss on the forum

Report this · Wrote this? Claim it

FlutterX is supported by