overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
5.07k stars 857 forks source link

Telegram Desktop: wrong dates on the Telegram Calendar #1076

Open ST-2017 opened 9 months ago

ST-2017 commented 9 months ago

Steps to reproduce

  1. Open the Telegram Calendar by scheduling a message.
  2. Check the number of days in the previous month in the current month window

Expected behaviour

The calendar shows the correct number of days in a month and also the dates correspond to real days.

Actual behaviour

1) Open February 2024. There are 29 days. 2) Click “>” and open March. Observe February. There are 31 days in February (29 days are expected) 3) Click “>” and open April. Observe March. There are 30 days in March (31 days are expected). The real day of April 1st is Monday but it is Sunday on Telegram calendar.

Video: https://github.com/overtake/TelegramSwift/assets/31862105/d62f4f40-d5ab-4515-a807-6a1f08c2191d

Note: it looks like the Сalendar shows the number of days in the previous month equal to the number of days in the current one.

number_of_days_issue

Operating system

macOS 14.3.1

Version of Telegram Desktop

10.7.259037, 10.7.1.259074

Installation source

Mac App Store

Crash ID

No response

Logs

No response