Yuito-app-android/app/src
Nik Clayton 5d4c14aed9
Correct the calculations for choosing the earliest day to show in the calendar / selected day (#3923)
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
2023-08-07 19:30:08 +02:00
..
androidTest/java/com/keylesspalace/tusky Timeline paging (#2238) 2022-01-11 19:00:29 +01:00
blue/res new app icon (#2695) 2022-09-13 19:48:09 +02:00
green/res Enforce lint cleanliness when building (#3363) 2023-03-13 10:23:42 +01:00
main Correct the calculations for choosing the earliest day to show in the calendar / selected day (#3923) 2023-08-07 19:30:08 +02:00
test/java Kotlin 1.9.0 (#3835) 2023-08-02 09:04:24 +02:00