really fix that weird timezone crash

This commit is contained in:
tibbi 2017-03-12 17:30:16 +01:00
parent 29b518f3ca
commit 1c46b71ac6
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
main_weekly_scrollview.beVisible()
week_view_hours_holder.removeAllViews()
val hourDateTime = DateTime().withTime(0, 0, 0, 0)
val hourDateTime = DateTime().withDate(2000, 1, 1).withTime(0, 0, 0, 0)
for (i in 1..23) {
val formattedHours = Formatter.getHours(this, hourDateTime.withHourOfDay(i))
(layoutInflater.inflate(R.layout.weekly_view_hour_textview, null, false) as TextView).apply {