handle time-zone change in weekly-view

This commit is contained in:
Zakaria Ait Ouchrif 2017-05-02 16:21:01 +01:00
parent 1296e37f25
commit 2bbc8980a2
1 changed files with 1 additions and 1 deletions

View File

@ -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
}