mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
Merge pull request #164 from zikobad/master
handle time-zone change in weekly-view #163
This commit is contained in:
commit
b05c501bcb
@ -418,7 +418,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
||||
private fun getWeekTimestamps(targetWeekTS: Int): List<Int> {
|
||||
val weekTSs = ArrayList<Int>(PREFILLED_WEEKS)
|
||||
for (i in -PREFILLED_WEEKS / 2..PREFILLED_WEEKS / 2) {
|
||||
weekTSs.add(targetWeekTS + i * WEEK_SECONDS)
|
||||
weekTSs.add(Formatter.getDateTimeFromTS(targetWeekTS).plusWeeks(i).seconds())
|
||||
}
|
||||
return weekTSs
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user