flymedllva/Telebot-Calendar

Week days are not aligned with calendar days

Noam5 opened this issue · 3 comments

Noam5 commented

For example in the picture May 31 is on Monday, but it is actually on Tuesday

image

I guess this happens because of different alignments in different languages.

From telebot_calendar.py:

ENGLISH_LANGUAGE = Language(
    days=("Su", "Mo", "Tu", "We", "Th", "Fr", "Sa")

and

RUSSIAN_LANGUAGE = Language(
    days=("Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс")

Russian week starts from monday.

I guess this happens because of different alignments in different languages.

From telebot_calendar.py:

ENGLISH_LANGUAGE = Language(
    days=("Su", "Mo", "Tu", "We", "Th", "Fr", "Sa")

and

RUSSIAN_LANGUAGE = Language(
    days=("Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс")

Russian week starts from monday.

Thankss

I don't do this library anymore, I made it for myself. If you're interested in refining it, do Pull Request