tchar / ulauncher-albert-calculate-anything

A ULauncher/Albert extension that supports currency, units and date time conversion, as well as a calculator that supports complex numbers and functions.
MIT License
103 stars 13 forks source link

[bug] #34

Closed OmarShawky1 closed 2 years ago

OmarShawky1 commented 2 years ago

Describe the bug

Does not give time at any place except my own place. and if i gave it my place it does not work

To Reproduce

time at NYC or time at Calif gives my own timezone but time at cairo or time at cairo egypt does not give anything.

Expected behavior

Gives the current time at target city.

Logs

If possible please provide the logs from the log directory Supose your username is username:

Screenshots

NYC time example

Desktop (please complete the following information)

tchar commented 2 years ago

Hey @OmarShawky1

Did the extension work at any point, or did it have this behavior since ever. Also could you please provide the logs after you run the command? If you reinstall is the problem fixed?

Thanks -T

OmarShawky1 commented 2 years ago

Hey @tchar

  1. Never worked.
  2. Issue Persists
tchar commented 2 years ago

Hello @OmarShawky1

Would you mind providing the logs from ~/.cache/com.github.tchar.calculate-anything/log after you run the time command.

Also did you try typing the whole name? Like time at New York City maybe try time at London

I want to understand if it is just of the "New York City" because the city has more than 1 word or it is for every city like 1 word cities.

OmarShawky1 commented 2 years ago
  1. Very sorry for the delay
  2. I read the logs myself and discovered that i did not read your README XD, all i need is tl install pip3 install pytz and it worked as smooth as butter.
  3. BTW, time at NYC does not work (gives my local time) , but time at New York City Does.
tchar commented 2 years ago

Yes, the problem is that NYC, is not the alias in my database. I have a repo of the datebase itself, but its a pain in the ass to map every city's alias.

For now you can put it in the default cities in the settings and the time command will give you the time in New York City by default under your local time without specifying the location.

I am closing this since pip3 install pytz fixes it and its not an issue. Feel free to reopen if necessary.

Cheers,

OmarShawky1 commented 2 years ago

Just a small hint, California does not appear in time as following: image