mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
The iOS app sends the date of birth as the instant its date picker returned, and the profile writers stored that instant as sent. Since the report cover and the share page read the date part of the stored value, an entry made just after midnight in Berlin printed the day before, and a Californian entry made in the evening printed the day after. Both profile writers now store the calendar day the value names in the owner's zone, at noon UTC like other date-only values, so an iOS client reading the instant back in its own zone keeps the date. Older rows keep their instant: dateOfBirthKey reads a date-only anchor (UTC midnight or noon) by its date and any other instant in the owner's zone. The report collector, the targets age, and the web forms that send the date back read it through that helper.