mirror of
https://github.com/tuskyapp/Tusky
synced 2025-02-02 11:47:09 +01:00
5d4c14aed9
To determine the earliest day to show in the calendar, take the current date/time, add the minimum scheduled seconds buffer (which may roll the date/time over to the next day), and then clamp to the start of that day. So it's either today (if the current time + minimum scheduled seconds is less than midnight) or it's tomorrow. When displaying the calendar work around a misfeature in Material Date Picker. It accepts UTC seconds-since-epoch, but does not convert it to the local time for display. While I'm here, show the selected day in the time picker's title. Fixes https://github.com/tuskyapp/Tusky/issues/3916