-
Notifications
You must be signed in to change notification settings - Fork 15
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
Weeks does not start with Sunday in Turkish #40
Comments
Can you test it? |
Thanks. Fixed. |
Is this still working? When I run with the |
Yeah, I have no idea how to reliably get the first day of the week. If you know how, please let me know. |
I see two examples that seems the same or similar. https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/src/shell-util.c?ref_type=heads#L79-135 |
I understand very little of this code. The calculation seems to be correct (I think..) The problem is figuring it out the week number of the current locale (I'm using 1, October 2000) this day for me is on week 40, for you it should be week 39. It's always gives 40 as the result now, before it gave 39 when I changed the locale, I didn't change anything in the code and somehow it stopped working so ¯_(ツ)_/¯ |
Could you use different date. E.g: 1, October 2017. Turkish timezone and daylight saving changed around 2016. |
I could try to tackle this. |
Doesn't seem to make a difference.
@erklyn That's the function: Lines 15 to 24 in 66b505d
If you manage to fix it, please open a PR. Also make sure to backup your data before running the latest commit, I change some stuff and I didn't test everything properly yet, so it may cause some data loss. |
@diegopvlk looks fine and works fine on my system as well, returns 39 for me I am an in Turkey so works correctly. there might be an issue on the button part. I'll take a look as soon as possible and post a pr. |
@erklyn It's not the button, you can test it by just returning false instead. What's your output of |
Turns out there is a very simple command to check the first weekday: |
In Turkish and some other countries, the first day of the week is Monday (meaning Pazartesi).
GNOME Calendar uses the correct format for this.
On the other hand, Dosage starts the week from Monday.
You may check the following article for more information: https://www.timeanddate.com/calendar/days/
The text was updated successfully, but these errors were encountered: