Skip to content

Conversation

@simonrupf
Copy link

Noticed while using the StarField watchface that the sunrise & sunset times displayed didn't have their timezone adjusted.

As per https://openweathermap.org/current#fields_json these get provided in UTC, so this small patch applies the retrieved gmtOffset to them, before the UNIX epoch conversion.

Also deals with some minor tab issues in the area.

Alternative: If the internal gmtOffset could get exposed, in a getter or via making it a public or protected property, we could do such calculations in the watchface's code. It seemed cleaner to me to handle this within the library, as all exposed times otherwise seem to already be timezone adjusted, if I understood correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants