flymedllva / Telebot-Calendar

Telegram bot inline keyboard calendar
https://github.com/eternnoir/pyTelegramBotAPI
MIT License
27 stars 11 forks source link

Week days are not aligned with calendar days #9

Open Noam5 opened 2 years ago

Noam5 commented 2 years ago

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

image

CurryFX commented 2 years ago

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.

ikhsanul27 commented 2 years ago

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

flymedllva commented 2 years ago

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