Telebot-Calendar icon indicating copy to clipboard operation
Telebot-Calendar copied to clipboard

Week days are not aligned with calendar days

Open Noam5 opened this issue 3 years ago • 3 comments

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

image

Noam5 avatar May 03 '22 10:05 Noam5

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.

CurryFX avatar Jun 16 '22 11:06 CurryFX

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

ikhsanul27 avatar Jun 22 '22 12:06 ikhsanul27

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

flymedllva avatar Jun 22 '22 12:06 flymedllva