atareao / my-weather-indicator

A Weather Indicator for Linux Desktop (Plasma, GNOME, MATE, XFCE,...)

Home Page:https://www.atareao.es/aplicacion/my-weather-indicator-para-ubuntu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect information about sunrise and sunset

Mogost opened this issue · comments

wrong
I think it happened because it did not taken into consideration the time zone. Tomsk is in GMT+7 TZ.
These data differ by approximately 7 hours.
Time in system and TZ is correct.
image
$ date
September 30 12:25:11 KRAT 2016
KRAT – Krasnoyarsk Time (Tomsk and Krasnoyarsk in the same timezone)

I was getting the same error for my local timezone for UTC - 4
It was because I dont use python, and on my installation there was no pytz nor tzlocal libraries, and the weather script could not get the local timezone.
The solution for me was pretty simple, simple install missing python libraries and restart the widget and timezone will work. In my case I use ubuntu based distro, I simply did on a terminal:

sudo apt install python-pip (to install libraries for python)
pip install pytz
pip install tzlocal

Restart widget and enjoy!

Added dependencies