Merge pull request #164 from zikobad/master

handle time-zone change in weekly-view #163
This commit is contained in:
Tibor Kaputa 2017-05-05 15:36:49 +02:00 committed by GitHub
commit b05c501bcb

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
}