Skip to content
Discussion options

You must be logged in to vote

Applies to: any version — this is how the project works by design.

A timetable is wall-clock time at the school: a bell at 08:30 rings at 08:30 local time even when the zone's offset changes. Storage in UTC would shift that local time whenever the offset changes, gaining nothing.

  • The zone belongs to the class, not the server or phone: SchoolClass.timezone holds an IANA name, chosen in the bot from server/app/timezones.py.
  • Server: "now"/"today" go through school_class.tz (now(school_class), today(school_class) in server/app/services/clock.py). TIMEZONE is the fallback for an unset/unreadable class zone, and the zone for anything with no class yet (e.g. the owner's «📊 Проект»).
  • Android: use …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lumenpearson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area:server area:android for:contributor Whoever changes the code or the documents: setup, checks, where a change goes
1 participant