overtake / TelegramSwift

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

Incorrect behavior of the scheduled message sending feature in Telegram when the system date is changed on macOS #1119

Open frmvaeia02 opened 1 month ago

frmvaeia02 commented 1 month ago

Steps to reproduce

  1. In the System Preferences on your MacBook (macOS Sonoma version 14.5), change the date to a random one that is different from the current date (e.g., a few days ahead or behind).
  2. Open Telegram for Desktop (version 10.10.2).
  3. Compose a new message in any chat.
  4. Click on "Schedule Message" and set the sending time to one hour after the current time.
  5. When adjusting the sending date, click on the date in the interface and select the desired date using the DatePicker. Notice that the displayed date corresponds to the altered system date, not the actual current date.
  6. Set the sending date to one day after the system date but earlier than the actual current date.
  7. Observe the behavior when you click "Send."

Expected behaviour

Actual behaviour

Operating system

macOS Sonoma version 14.5

Version of Telegram Desktop

10.10.2

Installation source

Static binary from official website