Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change time zone #4

Open
cairoramos7 opened this issue Feb 9, 2022 · 2 comments
Open

Change time zone #4

cairoramos7 opened this issue Feb 9, 2022 · 2 comments

Comments

@cairoramos7
Copy link

How can I change the times displayed in the widget?
After you have installed it, only the option to remove the widget appears instead of.

Screen Shot 2022-02-08 at 22 18 55

@johndbritton
Copy link
Owner

I have not implemented the ability to change the timezones. I'd be happy to review a pull request that makes them configurable. They are hard coded here:

HStack(spacing: 25) {
VStack {
Text("San Francisco")
.font(.headline)
Text("\(timeString(date: entry.date, timeZone: TimeZone(identifier: "US/Pacific")))")
.font(.title)
}
VStack {
Text("London")
.font(.headline)
Text("\(timeString(date: entry.date, timeZone: TimeZone(identifier: "Europe/London")))")
.font(.title)
}
VStack {
Text("Amsterdam")
.font(.headline)
Text("\(timeString(date: entry.date, timeZone: TimeZone(identifier: "Europe/Amsterdam")))")
.font(.title)
}

@lopugit
Copy link

lopugit commented May 16, 2024

Are there instructions on how to build this ourselves etc so devs can just go in an edit these values, or read from a config? 🤣

The current settings are quite good anyway, I would just use cupertino instead of SF 😂 and UK instead of Amsterdam

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

No branches or pull requests

3 participants