~/talk

Don't Let Time Zones Ruin Your Day

Talkat SwiftLeeds 2025 · 2025-10-07..10-08· [swift]
name:Chris Wu
bluesky:chriswu.com
slides:none on file

Built a weather app Please Don't Rain using WeatherKit and SwiftUI and hits concrete bugs: charts show wrong start-of-day because Calendar.current and default Date.FormatStyle use the device TZ; the chart unit argument plots midpoints so line/bar data gaps appear; WeatherKit day vs hour dates disagree in places like Nepal 5:45 offset; fixes are to create a custom TimeZone+Calendar, pass a Date.FormatStyle with that TZ, drop the unit argument, reformat hour entries, and add dark‑mode aware axis labels for accessibility.

AI-written summary · about

  1. 0:00Introduction and background
  2. 0:54Developer journey and story
  3. 2:34Notable quotes on time zones
  4. 4:09Project context and goals
  5. 6:58The dangers of manual dates
  6. 9:41Leveraging built-in tools
  7. 13:50Addressing logic bugs
  8. 15:32Implementing robust time logic
  9. 18:50Solving chart rendering gaps
  10. 21:11UTC offset pitfalls
  11. 22:15Framework behavior nuances
  12. 24:56Environment-based rendering
  13. 26:32Accessibility and styling
  14. 28:35Final recap and takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.