Skip to content

Adding more time zones

Sad Ellie edited this page Oct 26, 2023 · 6 revisions

Short answer

No.

Detailed answer

Each time zone has its' own set of rules:

  • Offset from GMT
  • Daylight saving time offset
  • Date when daylight saving time is used

This data always changes.

There are 3 solutions:

1. Paid API service

✅Pros:

  • Almost all time zones
  • Always up-to-date

❌Cons:

  • Costs money
  • Needs Internet, can go down, needs a caching mechanism
  • Can change API and break Unitto
  • Needs to be translated

2. Create my own API service

Pros and cons are same, except this one is free cheaper (you still need to pay).

3. Android's time zone provider (this is what Unitto uses)

read more: https://source.android.com/docs/core/permissions/timezone-rules

✅Pros:

  • Free
  • No need to translate (provided by system)
  • Doesn't break Unitto
  • Works offline, never goes down

❌Cons:

  • Less time zones
  • Less frequent updates (or none if you are unlucky)
Clone this wiki locally