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

timezone on rpi3/nerves #3

Open
brianmay opened this issue Aug 7, 2019 · 2 comments
Open

timezone on rpi3/nerves #3

brianmay opened this issue Aug 7, 2019 · 2 comments

Comments

@brianmay
Copy link

brianmay commented Aug 7, 2019

Hello,

I can't see how to set the timezone on raspberry pi operation. For some reason I was passing timezone: "Australia/Melbourne" to the analog_clock function, but now I can't see any documentation on this and it doesn't appear to work either. Instead I get times in UTC, which is the default for nerves I believe.

Regards

@boydm
Copy link
Collaborator

boydm commented Aug 7, 2019

Hi Brian. scenic_clock used to have a dependency on timex, but I removed it at some point in the past as it was 1) big, and 2) unclear if it was the right solution seeing as Elixir has changed its stance toward timezone databases.

What I would recommend is that you use scenic_clock as a template. It is really small, so pretty easy to understand. Tnen just roll your own clock from it that uses timex for timezones or what else you want.

For extra credit, you could find a good timezone database to use with the newish Elixir timezone functions to get that functionality working again. I would totally take that as a PR.

@brianmay
Copy link
Author

brianmay commented Aug 7, 2019

Thanks for your response. I probably should learn about these newish Elixir timezone functions myself.

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

2 participants