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? #105

Open
deanfourie1 opened this issue Mar 26, 2024 · 4 comments
Open

Change Time? #105

deanfourie1 opened this issue Mar 26, 2024 · 4 comments
Labels
can't recreate This bug cannot be recreated help wanted

Comments

@deanfourie1
Copy link

Where does jump get its time from?

Its 12 hours our for me, PM when its AM here. Any way to change, sorry im sure its a easy one.

Have tried setting long/lat

@mbl-35
Copy link

mbl-35 commented Apr 6, 2024

Hi @deanfourie1 ..
I had same pb. Checking the code, the local time is set when Wheather API call is success. So we have to specify the long/lat AND have a valid/activated OWMAPIKEY.

You can have a free one following this ;

Creating an Open Weather account

Creating an API key
Weather forecasts can only be accessed using an API access key (the requiered OWMAPIKEY API key).
To generate your Open Weather API key:

  • Identify yourself on the page https://home.openweathermap.org/api_keys
  • Go to the “API Keys” section
  • Give your key a name, for example jump-owmapikey
  • Click on “Generate”
  • You now have an access key to the Open Weather weather forecast API.

Copy this key and paste it into the jump configuration (OWMAPAPIKEY env var)

The time should now be set (remove all presiously cookies from your browser..).

@deanfourie1
Copy link
Author

Thanks for this.

This is stupid.

Why not just use the system locale.

In my case, I host a lot of my services hosted on a VLAN without internet connection. What is the need to query an external API for time? I understand to pull weather but I don't even use that feature.

Surely there's a way to pull the time from the system?

@daledavies
Copy link
Owner

It should use the client local timezone if you do not use an OWMAPIKEY... https://github.com/daledavies/jump/blob/main/jumpapp/assets/js/src/classes/Clock.js#L74

@deanfourie1
Copy link
Author

Thanks, I just checked this and my date and time was wrong, however,

After changing to the correct time zone,

Tue Apr 16 21:54:55 NZST 2024

It is still showing the wrong time after a full host reboot.

Thanks, appreciate the help!

@daledavies daledavies added can't recreate This bug cannot be recreated help wanted labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't recreate This bug cannot be recreated help wanted
Projects
None yet
Development

No branches or pull requests

3 participants