mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-22 15:00:07 +01:00
handle time-zone change in weekly-view
This commit is contained in:
parent
1296e37f25
commit
2bbc8980a2
@ -418,7 +418,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||||||
private fun getWeekTimestamps(targetWeekTS: Int): List<Int> {
|
private fun getWeekTimestamps(targetWeekTS: Int): List<Int> {
|
||||||
val weekTSs = ArrayList<Int>(PREFILLED_WEEKS)
|
val weekTSs = ArrayList<Int>(PREFILLED_WEEKS)
|
||||||
for (i in -PREFILLED_WEEKS / 2..PREFILLED_WEEKS / 2) {
|
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
|
return weekTSs
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user